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); } }
—from Try, Catch, Finally, a other by http://www.javascriptbook.com
Active since October 3, 2018.
501 total characters in this text.
View Pit Stop page for this text
Rank | Username | WPM | Accuracy | Date |
---|---|---|---|---|
1. | (sidd_) | 112.00 | 99% | 2019-01-27 |
2. | r (deroche1) | 76.28 | 94% | 2019-02-14 |
3. | (delirious) | 74.07 | 97% | 2019-01-27 |
4. | (keegant) | 73.09 | 96% | 2019-06-12 |
5. | SalmanMKC (hellothen) | 72.48 | 97% | 2019-02-06 |
6. | washed (zak389) | 69.53 | 97% | 2024-07-21 |
7. | police (styrofoam) | 69.26 | 97% | 2018-11-01 |
8. | Shoemaker-Levy 9 (atthetop) | 63.43 | 95% | 2018-11-01 |
9. | (poem) | 60.53 | 96.7% | 2019-01-30 |
10. | Mohammad (alamin_typist) | 56.55 | 96% | 2018-11-17 |
11. | ⛧🦇🎃💀🎃🦇⛧ ... | 54.45 | 94% | 2019-01-08 |
12. | Kitty (kxkixi) | 49.69 | 95% | 2018-11-22 |
13. | mairzydoats_mason (mairzydo... | 42.84 | 99% | 2019-01-21 |
14. | Shawn (dshawn) | 40.07 | 94% | 2018-10-15 |
Universe | Races | Average WPM | First Race |
---|---|---|---|
Coder Edition | 52 | 64.12 | October 3, 2018 |