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,920
Rank Username WPM Accuracy Date
775. Chinmay (chinmaykarnik) 46.71 94% 2024-08-01
776. Whitecap (whitecap) 46.66 96% 2023-09-23
777. adin (tappineapple) 46.59 93% 2021-10-07
778. stranger (courage_iberg) 46.58 97% 2023-09-16
779. Vacuum Cleaner (vacuumclean... 46.54 92% 2024-02-23
780. Tim (tim_han1234) 46.51 95% 2020-09-24
781. Bijoy (bijoy022_) 46.50 98% 2024-08-23
782. Tri Dung (phantridung123) 46.49 93% 2023-10-16
783. Thien Truc NGUYEN (thientru... 46.49 95% 2024-12-04
784. Mohamed (wooork) 46.49 96% 2025-01-05
785. Ping Janat (ppppp5541) 46.47 94% 2024-08-22
786. Jayden (jripic137) 46.45 94% 2021-09-19
787. Vilson (vilsonkh) 46.43 98% 2023-08-23
788. danjkstra (danjkstra) 46.41 96% 2022-11-15
789. Alpha (alpha_sp4rky) 46.37 95% 2023-08-25
790. amirhossein (amirho) 46.34 95% 2023-06-01
791. Jason (tracerx) 46.33 97% 2023-07-11
792. Sinbard (sinbard) 46.31 96% 2024-05-20
793. juutiju (juutiju) 46.30 95% 2019-08-20
794. wan (wansap) 46.30 96.2% 2024-03-29
795. Benismann187 (inaros) 46.30 93% 2024-01-28
796. WalterWhite (walter_white699) 46.29 97% 2025-01-22
797. haleylind (hali491) 46.26 95% 2024-02-23
798. Porker (porkerpig) 46.18 95.6% 2023-10-27
799. ✌✌✌ (roolee) 46.15 97% 2024-05-09
800. idk man (ithatme) 46.12 92% 2023-05-20
801. Prince Billy Graham (prince... 46.09 93% 2023-06-02
802. Eugene (havlong) 46.07 95% 2023-11-12
803. insta_AydinR1K (aydinyt) 46.07 92% 2025-04-27
804. hhesenjan (hhesenjan) 46.00 94.8% 2024-03-18

Universes

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