Race Updates Discord About Merch
Home Profile History Competitions Texts Upgrade

typeracer

Pit Stop
Racer (zak389)
Race Number 446
Date Sun, 21 Jul 2024 0:06:48
Universe code
Speed 70 WPM Try to beat?
Accuracy 96.9%
Rank 1st place (out of 2)

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); } }
— (other) by http://www.javascriptbook.com (see stats)

Typing Review: