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,788
Rank Username WPM Accuracy Date
1682. CrappyDino (crappydino) 23.97 94% 2024-07-23
1683. Lenuel (lenuel) 23.93 94% 2023-08-09
1684. sya (cha2) 23.92 91% 2024-06-17
1685. Ida Bagus Bayu Krisna Wibaw... 23.82 92% 2024-10-21
1686. Brian Kip (briankip1) 23.76 94% 2023-08-09
1687. Kyrillos (kyrillos_akram) 23.72 96% 2024-03-25
1688. Kavindu (kavindu_jayarathne) 23.66 92% 2023-05-29
1689. Vivian (modernnighthail) 23.66 98% 2024-12-10
1690. Adela Deandra Sempau (delad... 23.60 92% 2024-03-25
1691. mansi08n (mansi08n) 23.49 88% 2024-06-08
1692. tonystark (tonystark_1234) 23.46 90% 2024-12-09
1693. Krishna (kingofxpbp) 23.33 95% 2025-01-31
1694. SapiMyt (sapimyt) 23.31 90% 2024-08-15
1695. nhoek (nhoek) 23.30 95% 2019-11-04
1696. abhishek (a_anand_12) 23.23 93% 2022-12-05
1697. Nanda yasa (nandayasa) 23.22 93% 2024-03-25
1698. bruh (zeloceb) 23.08 96% 2022-01-24
1699. shamimi (shamimi2) 23.08 92% 2024-03-02
1700. Patrick (patrick10) 23.07 96% 2020-11-30
1701. jerocx (jerocx) 23.02 95% 2024-05-11
1702. Mulia (erwinmulia) 22.93 92% 2024-03-21
1703. krish (krish120) 22.89 90% 2025-01-12
1704. Cristian Redita (cristian_a... 22.89 94% 2024-10-21
1705. Priyanka (kaashvi_2022) 22.87 95% 2024-07-01
1706. Omar (omar_zahran) 22.84 91% 2024-08-08
1707. keski6 (keski6) 22.81 92% 2024-02-08
1708. ANGGA WIDIARTA (widiarta) 22.78 95% 2024-03-21
1709. Max (maxalkin) 22.67 95% 2024-06-15
1710. Cristian Flores (elamigo246) 22.66 91% 2024-06-09
1711. YASH (yash5908) 22.64 91% 2024-07-29

Universes

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