Text #10015

function calculateArea(width, height) { try { var area = width * height; if (!isNaN(area)) { return area; } else { throw new Error('calculateArea() received invalid number'); } } catch(e) { console.log(e.name + ' ' + e.message); return 'We were unable to calculate the area.'; } }

—from Throw, a other by http://www.javascriptbook.com

Active since October 4, 2018.
301 total characters in this text.

View Pit Stop page for this text

Leaders

View ranks through of 1,828
Rank Username WPM Accuracy Date
1304. Mostafa (mostafa_abdelaal) 34.33 93% 2023-08-08
1305. Francesco (cecco43) 34.31 93.6% 2024-01-02
1306. ig: tomekgowin_ (tomeczek) 34.30 93% 2024-12-19
1307. Nagappan (revoristic_naga) 34.29 93% 2023-06-19
1308. TypeSquid (typesquid) 34.29 94% 2024-09-15
1309. Jerry (jerry_jeager) 34.28 92% 2024-06-08
1310. Xancola (xancola) 34.27 90% 2020-11-18
1311. 413k (413k) 34.25 95% 2024-06-03
1312. Su (su1615) 34.21 94% 2025-01-11
1313. Ioan (ioans) 34.20 94% 2023-01-25
1314. goofy goober (2chill4u_top) 34.19 94% 2023-06-30
1315. Made Daliant (madedaliant) 34.18 95% 2024-10-21
1316. oliver (oliver13863) 34.14 93% 2024-12-30
1317. tymon (tyron5202) 34.10 92% 2024-05-12
1318. Nikk (white13) 34.09 93% 2021-04-14
1319. themztr (themztr) 34.06 94% 2023-06-10
1320. ellie (ellliee) 34.05 98% 2023-09-08
1321. Zaphod (zapgawd) 34.04 95% 2024-09-20
1322. em0nal (em0nal) 34.03 92% 2024-01-29
1323. AI (lhyn0505) 34.03 95% 2024-08-21
1324. Leve Leve, Leve Palestina (... 33.96 93% 2023-12-23
1325. net (nethe) 33.96 97% 2025-03-01
1326. Devender (dev2002) 33.95 94% 2023-06-19
1327. World Walker (world_walker) 33.94 95% 2024-11-09
1328. tinytim (tinytim3) 33.92 97% 2024-10-16
1329. Mohamed Y Jazza (mohammad_j... 33.88 95% 2024-03-20
1330. Kyle (bigboiblue) 33.87 91% 2019-09-13
1331. Omer (omer_nukic) 33.87 93% 2021-10-08
1332. JkillahR (jkillahr) 33.87 94% 2024-07-05
1333. raging_wolf (raging_wolf) 33.83 94% 2020-12-10

Universes

Universe Races Average WPM First Race
Coder Edition 5,378 48.21 October 4, 2018