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,296
Rank Username WPM Accuracy Date
1027. Witold (netmaniac) 32.49 94% 2023-06-13
1028. Audric (callmeric) 32.47 92% 2023-11-13
1029. Simon (twistios) 32.45 95% 2023-09-25
1030. Nikita (s_ttyx) 32.45 90% 2023-07-16
1031. Carla (carlaelenaceb) 32.43 97% 2024-04-09
1032. jack (suckyourmum2021) 32.37 91% 2023-08-10
1033. Abhishek17 (abhishek_17) 32.36 92% 2023-08-09
1034. Ankur Gupta (ankur_g) 32.34 95% 2023-05-25
1035. Nirajan Acharya (secondhand... 32.24 91% 2024-07-16
1036. Palestine Freedom (greenza) 32.22 95% 2024-04-21
1037. sukhoi su-57 (shezy) 32.19 96% 2023-08-30
1038. bataa (batuchka) 32.18 91% 2023-07-20
1039. Ethereal (dragonfly654) 32.15 94% 2024-01-14
1040. suhayb (suhayb) 32.14 92% 2023-11-30
1041. Bright (_br1ght_) 32.11 94% 2024-08-09
1042. Racer503 (racer503) 31.98 91% 2024-08-16
1043. RickChyou (rickchyou) 31.96 95% 2023-09-23
1044. Hasan (hasan_2809) 31.95 91% 2023-07-01
1045. Matei (martinix_1006) 31.91 94% 2024-04-09
1046. Harsh (he_who_remains) 31.88 91% 2024-05-20
1047. katyaa0_o (katyaa0_o) 31.83 95% 2023-06-15
1048. Area_42 (area_42) 31.79 97% 2023-07-07
1049. Ankit (ankit_10) 31.69 93% 2023-08-25
1050. Bigily (bigilyy) 31.64 92% 2023-01-17
1051. Pranav (prnv_srvstv) 31.62 94% 2023-08-05
1052. Yeahh_ (yeahh_) 31.49 93% 2023-10-01
1053. Obed Gonzalez (bedo45) 31.48 96% 2024-03-11
1054. Rana (rana_1996) 31.45 93% 2020-02-06
1055. Aheed (aheedbn) 31.43 95% 2023-09-12
1056. krish (krish008) 31.42 94% 2023-07-03

Universes

Universe Races Average WPM First Race
Coder Edition 3,891 49.41 October 4, 2018