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 981
Rank Username WPM Accuracy Date
182. val (mushrumi) 63.93 96% 2023-10-12
183. Steve (steveleem) 63.93 95% 2024-01-06
184. K (ufomi) 63.93 95.9% 2023-11-28
185. Othmane (boumediane1) 63.86 97% 2023-06-18
186. tstats[mm_food] (mm_food) 63.76 96% 2023-08-22
187. (bummered) 63.74 97% 2023-02-24
188. gluon (veryslowracer) 63.60 96% 2023-12-11
189. delfador42 (delfador42) 63.39 98% 2022-01-07
190. kadomaniac (big_time_snail) 63.15 98% 2019-07-04
191. Julian (robthephysician) 62.85 96% 2022-08-01
192. daniel3131 (daniel3131) 62.74 95% 2019-10-16
193. (mitchellwu076) 62.53 94% 2020-12-01
194. cricket (cricketrocks) 62.52 95% 2021-01-31
195. quyenx (xquyen) 62.46 97% 2023-08-20
196. racykey (racykey) 62.14 95% 2024-01-01
197. zane (magicsoap) 62.14 95% 2020-11-25
198. mairzydoats_mason (mairzydo... 61.99 100% 2020-12-31
199. nullchilly (tuwuna) 61.98 94% 2021-11-12
200. Userzin (userzin) 61.95 97% 2021-11-30
201. Mohammad (alamin_typist) 61.89 98% 2018-11-17
202. Allie (worst_typist_evah) 61.80 93% 2018-10-11
203. Eric (sabokizi) 61.79 96% 2023-03-28
204. harshit (harshit712) 61.76 97% 2023-07-18
205. taro (doysid) 61.41 97% 2024-02-02
206. Nikhil (quill_workman) 61.37 97% 2023-06-20
207. Marcus (atmos) 61.36 95% 2024-01-14
208. Andrews (godspeeedd) 61.25 95% 2023-08-09
209. Slowest (briandoppler) 61.12 95% 2022-05-26
210. ILoveSelly (mkim236) 60.97 98% 2023-06-14
211. asdf (mnien) 60.80 95% 2023-08-18

Universes

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