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,789
Rank Username WPM Accuracy Date
657. tidsfordriv (tidsfordriv) 49.45 96% 2024-12-03
658. california (california_heat... 49.41 94% 2024-07-26
659. Patzer (chess_patzer) 49.37 92.4% 2023-10-30
660. naxys (razumikhin) 49.37 95% 2025-01-10
661. kinisslearner (kinesislearner) 49.32 95% 2024-05-03
662. Honzik (jvacata) 49.29 96.5% 2024-01-05
663. iSyqozz512 (isyqozz512) 49.25 95% 2023-09-04
664. jasim (willnotreveal) 49.24 93% 2024-04-20
665. arnab (dark_morty) 49.22 95% 2023-07-08
666. Raka (raka17) 49.19 93% 2023-11-04
667. pfeffernusse (typemaster2006) 49.18 94% 2023-07-23
668. Ashok (ashokabrother) 49.13 98% 2024-05-23
669. Billy (wayrus) 49.11 96% 2023-02-08
670. Arif (arifali) 49.09 96.8% 2023-10-22
671. Badal sura (badalsura) 49.06 94% 2023-07-20
672. montanaromero (montanaromero) 48.97 94% 2024-03-23
673. Karthik (_karthik_jamadagni) 48.95 95% 2024-04-04
674. (atorpy) 48.91 94% 2022-05-23
675. sk (teslateslatesla) 48.90 96% 2021-09-26
676. Yunik Gautam (yunik_gautam) 48.89 96% 2023-06-27
677. frendhy zhuang (frendhy) 48.88 96% 2023-09-14
678. Free Palestine (imamo) 48.85 96% 2025-01-22
679. Ameesh (yellow_flashh) 48.82 93% 2025-02-26
680. john mat (john_mat) 48.80 97% 2023-07-07
681. alltimelol (alltimelol) 48.79 96% 2024-03-04
682. MrBoombastic (mr_boombaastic) 48.72 96% 2021-07-16
683. Sort (sortoite) 48.72 93% 2024-05-20
684. JP (developwithpassion) 48.72 94% 2024-08-24
685. im SLOW (yashkumar0) 48.67 95% 2023-09-17
686. Anurag (anurag5sh) 48.67 96% 2024-01-28

Universes

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