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,096
Rank Username WPM Accuracy Date
1046. Brian Kip (briankip1) 23.76 94% 2023-08-09
1047. Kavindu (kavindu_jayarathne) 23.66 92% 2023-05-29
1048. Amine (amine_frihi) 23.61 92% 2024-05-03
1049. Adela Deandra Sempau (delad... 23.60 92% 2024-03-25
1050. nhoek (nhoek) 23.30 95% 2019-11-04
1051. abhishek (a_anand_12) 23.23 93% 2022-12-05
1052. Nanda yasa (nandayasa) 23.22 93% 2024-03-25
1053. bruh (zeloceb) 23.08 96% 2022-01-24
1054. Patrick (patrick10) 23.07 96% 2020-11-30
1055. keski6 (keski6) 22.81 92% 2024-02-08
1056. divyanshu maurya (divyanshu... 22.62 96% 2023-07-13
1057. Michael (890michael) 22.61 89% 2024-02-12
1058. Zane (slvnted) 22.47 90% 2024-05-20
1059. Kyrillos (kyrillos_akram) 22.19 94% 2023-05-26
1060. dfwCraig (dfwcraig) 21.84 92% 2023-11-14
1061. awet (awetey) 21.72 93% 2024-01-14
1062. nobin sutradhar (nobin_sutr... 21.58 95% 2023-09-23
1063. jo (johnad) 20.89 93% 2023-07-02
1064. Psyclone (_psyclone_) 20.86 89% 2023-11-24
1065. Enock (enockmutanga01) 20.82 92% 2023-09-08
1066. CHSR (chsr) 20.76 93% 2023-06-06
1067. Marko (hawk691) 20.34 94% 2024-02-13
1068. wkn1 (wkn1) 20.33 91% 2024-02-08
1069. Ludger (ludger) 20.30 90.5% 2023-12-04
1070. lluis (lluissuros) 20.03 91.1% 2024-01-17
1071. New racer (protostarx) 20.01 93% 2024-04-27
1072. Md (imti_23) 19.98 94% 2023-06-20
1073. t yszm (closets) 19.66 93% 2023-10-01
1074. Priyanka (priyanka8650) 19.40 97% 2024-06-02
1075. Ahmad (ahmadreza22) 19.34 90% 2023-10-20

Universes

Universe Races Average WPM First Race
Coder Edition 2,564 51.06 October 4, 2018