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,795
Rank Username WPM Accuracy Date
917. arif (arifardians) 42.38 96% 2024-09-25
918. Mohamed (normal_eg) 42.38 93% 2023-10-09
919. Dullpig (dullpig) 42.30 97% 2024-02-21
920. Terrell (hackerg) 42.28 96% 2024-10-20
921. Polish (gtadragonball) 42.26 91% 2023-05-26
922. Nicholas (cl0zzy_) 42.25 90% 2023-09-15
923. Marcelo (kokosensei) 42.24 99% 2024-10-18
924. BTC 100k$ soon (anagami) 42.23 96% 2024-01-28
925. vivek (vivek39266) 42.22 97.4% 2024-03-01
926. Kip (kippey) 42.19 93% 2020-10-09
927. tstats[shanyg] (shanyg) 42.19 96% 2023-10-14
928. Singularity (thuantran5496) 42.17 94% 2023-11-22
929. Omnom (marloolvena) 42.15 92% 2023-11-24
930. Gnany (gnanyadapa) 42.14 95% 2023-09-12
931. tico (slowcheetah) 42.11 94% 2023-08-21
932. Reymondo (thelegendarygodray) 42.10 95% 2024-09-23
933. Jagadeeswar (jd_300) 42.09 95% 2024-05-20
934. Aryan (aryan0_0008) 42.07 92.4% 2023-12-18
935. Arco (typingarco) 42.06 96.8% 2024-01-13
936. Meshach Asis (deanace) 42.06 95% 2024-11-27
937. Joe (T-Perm) (youssifgamal255) 42.01 94% 2023-06-16
938. Hat Trick (hat_trick_studios) 42.01 95% 2024-12-20
939. Ida Bagus Dharma Abimantra ... 42.00 94% 2024-10-21
940. Mutasim Mualimi (mutasim_2001) 41.98 94% 2023-06-07
941. cignx (clamchowderco) 41.97 95% 2023-05-21
942. avg homeboi (avg_homeboi) 41.95 96% 2024-01-20
943. Jacob (pandurrr2812) 41.92 93% 2025-03-12
944. Nuthasith (nat9dai) 41.90 93% 2025-02-12
945. bmax (bmax) 41.89 96% 2021-10-29
946. Andy (lithium_x) 41.88 92.1% 2023-11-03

Universes

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