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 2,000
Rank Username WPM Accuracy Date
978. Ashu (asaral) 42.49 96% 2023-07-27
979. chook (chook1234) 42.42 94% 2024-02-15
980. Free Palestine (koenigsegg77) 42.40 95.8% 2024-07-23
981. Cosmic (aji3) 42.39 95% 2022-11-24
982. Mel (nc0de) 42.38 95% 2020-01-17
983. arif (arifardians) 42.38 96% 2024-09-25
984. Mohamed (normal_eg) 42.38 93% 2023-10-09
985. Dullpig (dullpig) 42.30 97% 2024-02-21
986. Terrell (hackerg) 42.28 96% 2024-10-20
987. Polish (gtadragonball) 42.26 91% 2023-05-26
988. Nicholas (cl0zzy_) 42.25 90% 2023-09-15
989. Marcelo (kokosensei) 42.24 99% 2024-10-18
990. BTC 100k$ soon (anagami) 42.23 96% 2024-01-28
991. vivek (vivek39266) 42.22 97.4% 2024-03-01
992. Kip (kippey) 42.19 93% 2020-10-09
993. tstats[shanyg] (shanyg) 42.19 96% 2023-10-14
994. Singularity (thuantran5496) 42.17 94% 2023-11-22
995. Omnom (marloolvena) 42.15 92% 2023-11-24
996. Gnany (gnanyadapa) 42.14 95% 2023-09-12
997. tico (slowcheetah) 42.11 94% 2023-08-21
998. Reymondo (thelegendarygodray) 42.10 95% 2024-09-23
999. Jagadeeswar (jd_300) 42.09 95% 2024-05-20
1000. Aryan (aryan0_0008) 42.07 92.4% 2023-12-18
1001. Arco (typingarco) 42.06 96.8% 2024-01-13
1002. Meshach Asis (deanace) 42.06 95% 2024-11-27
1003. Joe (T-Perm) (youssifgamal255) 42.01 94% 2023-06-16
1004. Hat Trick (hat_trick_studios) 42.01 95% 2024-12-20
1005. Ida Bagus Dharma Abimantra ... 42.00 94% 2024-10-21
1006. Mutasim Mualimi (mutasim_2001) 41.98 94% 2023-06-07
1007. cignx (clamchowderco) 41.97 95% 2023-05-21

Universes

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