Race Updates Discord About Merch
Home Profile History Competitions Texts Messages Friends Upgrade

typeracer

Pit Stop

Record your races with a typeracer account:

Create Your Account
  • Save your race history and scores.
  • Customize your profile and racecar.
  • It’s free, why not?
Racer police (styrofoam)
Race Number 169
Date Sun, 27 Jan 2019 23:35:26 +0000
Universe code
Speed 68 WPM Try to beat?
Accuracy 95.7%
Rank 3rd place (out of 5)
Opponents delirious (2nd place) sidd_ (1st place)

Text typed:

if (response) { try { var dealData = JSON.parse(response); // Try to parse JSON showContent(dealData); // Show JSON data } catch(e) { var errorMessage = e.name + ' ' + e.message; // Create error msg console.log(errorMessage); // Show devs msg feed.innerHTML = '<em>Sorry, could not load deals</em>';// Show users msg } finally { var link = document.createElement('a'); // Add refresh link link.innerHTML = ' <a href="try-catch-finally.html">reload</a>'; feed.appendChild(link); } }
Try, Catch, Finally (other) by http://www.javascriptbook.com (see stats)

Typing Review: