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,986
Rank Username WPM Accuracy Date
103. Kenny (hkennyv) 77.14 95.9% 2023-10-12
104. Andrew (andrewrademacher) 77.07 97% 2021-01-29
105. paraph (paraphrohn) 77.05 96% 2019-02-25
106. Enxyon (enxyon) 77.03 97% 2024-08-03
107. Jay (kamikamigod) 76.90 96.3% 2024-08-30
108. lavé (traben) 76.89 97% 2021-11-03
109. why (believeable) 76.84 98% 2024-05-01
110. 150 how? (minidraco) 76.75 97% 2023-10-09
111. Slei (sleiphir) 76.75 98% 2024-07-05
112. PicturingFrames (frame_abil... 76.73 95% 2022-09-16
113. Sachin Sharma (ragemodeon) 76.59 98% 2022-07-09
114. صَقْرُ السُّرْ... 76.56 98% 2024-10-10
115. BaniaTeAmo3 (camilin2002) 75.73 98% 2023-06-19
116. ImBrayyy (imbrayyy01) 75.65 94% 2023-09-15
117. typerlad (typerlad) 75.61 99% 2020-08-13
118. 🌹パレスチナと🥀 ... 75.54 97% 2022-06-09
119. manthan (sixtynine_wpm) 75.17 99% 2025-05-20
120. Boris (goat_56) 75.13 96% 2023-06-27
121. TimeLoad (timeload) 75.09 97% 2019-05-28
122. Michelle (michelleness) 75.09 96% 2020-11-19
123. deja vu (zight554) 75.03 97% 2022-03-01
124. Դավիթ (seyranyandavid) 74.94 98% 2022-01-09
125. Minnie (dalamus) 74.81 98% 2019-07-11
126. Dongerlord (thedongerlord) 74.65 96% 2024-12-11
127. 🐷Technoblade never dies... 74.63 97% 2019-07-21
128. xlnc (yabagao) 74.62 97% 2023-10-31
129. Chris (cccxxxl) 74.55 98% 2024-01-21
130. DNF (lam4nk) 74.42 96.6% 2023-12-25
131. shuffled neurons (spicytuna1) 74.41 96% 2020-08-01
132. Vincent B (vbarbaresi) 74.33 96% 2024-12-04

Universes

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