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 2,000
Rank Username WPM Accuracy Date
1716. Amarpreet (bhangu_05) 27.88 94% 2021-11-09
1717. darsh patil (darsh_15) 27.86 95% 2024-02-19
1718. Mohamed massous (hamassous) 27.85 92% 2024-01-27
1719. Alvaro Moyata (tocsky) 27.84 96% 2025-06-04
1720. t11h (t111h) 27.83 94% 2022-03-22
1721. Heba (xylian) 27.80 93% 2024-01-31
1722. Zun_Si_Yuan (zun_si) 27.79 95% 2024-11-29
1723. alihamzaPk (alihamza_pk) 27.75 92% 2023-08-15
1724. Sardorbek (merganbek) 27.74 91% 2023-08-20
1725. pinn (pinnsupin) 27.74 93% 2024-11-30
1726. Chad (thequickbrowngoat) 27.66 91% 2024-05-01
1727. monish (siddharth_pai) 27.58 96.3% 2024-09-10
1728. Aaron (aaronoct) 27.57 95% 2020-11-25
1729. dropeee (dropeeexx11) 27.57 89% 2024-11-26
1730. RAYYAN SAIFI (rana11) 27.56 91% 2023-11-10
1731. PTG (ptg_123456) 27.52 94% 2023-08-18
1732. Kirin (arya_juniko) 27.50 96% 2023-06-29
1733. Samridda (shinigami_69) 27.46 94% 2023-06-28
1734. stephen (steveexclusive) 27.46 93% 2025-04-07
1735. Alexander Curambao (alexand... 27.45 95% 2025-03-16
1736. Baye (baye_0) 27.40 94% 2023-12-26
1737. P ʀ ɪ ɴ ᴄ á´... 27.40 93% 2023-06-12
1738. Typecoder (anishraju02) 27.32 97% 2024-01-12
1739. Heisfer (heisfer) 27.32 94% 2023-12-24
1740. good_bedbug (good_bedbug) 27.32 95% 2025-01-12
1741. Jay Kolawala (jay_kolawala) 27.31 95% 2025-01-20
1742. Bharath Kumar Perugu (bhara... 27.31 96% 2025-06-03
1743. riyasa_2301020003 (riyasa) 27.27 96% 2024-03-21
1744. Liz Mariela Perez Gervacio ... 27.27 95% 2025-06-09
1745. Hasan Berkant (prediger) 27.26 91% 2024-02-14

Universes

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