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,997
Rank Username WPM Accuracy Date
942. naiqkiq (ryanscarislow) 43.12 95% 2024-01-31
943. MX MECHANICAL (mx_mechanical) 43.11 94% 2024-09-06
944. IHaveArthritus (loabing) 43.06 94% 2024-09-28
945. Slow Typist ツ (dasasd1) 43.05 94% 2023-07-03
946. kwistea (kwistea) 43.04 95.3% 2023-10-16
947. Ebenezer (abenezerangelos) 43.04 96% 2023-06-07
948. harry (yeah0330) 43.03 98% 2023-10-01
949. Pankaj (cronton) 43.01 97% 2024-03-01
950. Satnam 😃 (satnam9781) 43.00 96% 2019-12-01
951. Labione (labione) 43.00 94.5% 2025-03-25
952. Rennex (nixoneen) 42.93 92% 2023-08-16
953. M.Ha (manhha00) 42.90 93% 2023-09-10
954. Jacq (jacquel) 42.90 97.9% 2023-12-14
955. r (blazinrt) 42.89 94% 2024-05-28
956. nobin sutradhar (nobin_sutr... 42.87 93.9% 2024-12-10
957. Elemental (elementalscar) 42.87 96% 2024-08-17
958. ShadowProgrammer (shadowpro... 42.85 97% 2024-02-26
959. Iva (seriouslyiva) 42.84 94% 2023-07-24
960. mat O (mat_o) 42.84 97% 2024-08-04
961. MrJockel (mrjockel) 42.81 97% 2024-01-28
962. Raghav (aimbot55) 42.80 93% 2023-09-26
963. Saika (totsuka_saika) 42.79 93% 2023-07-27
964. Suman Tiwari (sanz80) 42.78 98% 2023-06-30
965. Maidul (goal100wpm) 42.72 98% 2023-07-19
966. Sarah (smm2319) 42.71 96% 2024-05-15
967. AgentGarbo (agentgarbo) 42.68 98% 2024-07-20
968. Type like never before! (re... 42.67 93% 2021-12-29
969. particles (notparticles) 42.67 97.5% 2021-01-31
970. BOK (da_bok) 42.67 93% 2023-08-09
971. JD (jigglyjd) 42.62 93% 2023-08-14

Universes

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