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,794
Rank Username WPM Accuracy Date
1562. darsh patil (darsh_15) 27.86 95% 2024-02-19
1563. Mohamed massous (hamassous) 27.85 92% 2024-01-27
1564. Heba (xylian) 27.80 93% 2024-01-31
1565. Zun_Si_Yuan (zun_si) 27.79 95% 2024-11-29
1566. alihamzaPk (alihamza_pk) 27.75 92% 2023-08-15
1567. Sardorbek (merganbek) 27.74 91% 2023-08-20
1568. pinn (pinnsupin) 27.74 93% 2024-11-30
1569. Chad (thequickbrowngoat) 27.66 91% 2024-05-01
1570. monish (siddharth_pai) 27.58 96% 2024-09-10
1571. Aaron (aaronoct) 27.57 95% 2020-11-25
1572. dropeee (dropeeexx11) 27.57 89% 2024-11-26
1573. RAYYAN SAIFI (rana11) 27.56 91% 2023-11-10
1574. PTG (ptg_123456) 27.52 94% 2023-08-18
1575. Kirin (arya_juniko) 27.50 96% 2023-06-29
1576. Samridda (shinigami_69) 27.46 94% 2023-06-28
1577. stephen (steveexclusive) 27.46 93% 2025-04-07
1578. Alexander Curambao (alexand... 27.45 95% 2025-03-16
1579. Baye (baye_0) 27.40 94% 2023-12-26
1580. Typecoder (anishraju02) 27.32 97% 2024-01-12
1581. Heisfer (heisfer) 27.32 94% 2023-12-24
1582. good_bedbug (good_bedbug) 27.32 95% 2025-01-12
1583. Jay Kolawala (jay_kolawala) 27.31 95% 2025-01-20
1584. riyasa_2301020003 (riyasa) 27.27 96% 2024-03-21
1585. Hasan Berkant (prediger) 27.26 91% 2024-02-14
1586. Advis (advis) 27.26 94% 2025-04-07
1587. venom (venom3) 27.21 90% 2023-08-17
1588. Yash (yashmr) 27.18 96% 2024-12-10
1589. laba (ldummy) 27.15 93% 2024-06-14
1590. Maksud200418 (maksud200418) 27.13 91% 2024-09-04
1591. wozzboss (wozzboss) 27.12 92% 2023-12-12

Universes

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