Race Result Details |
Racer | Ibrahim Musa (ibrahim_musa) |
Race Number | 2 |
Date | Tue, 4 Feb 2025 4:09:27 |
Universe | code |
Speed |
50 WPM
![]() |
Accuracy | 96.1% |
Rank | 2nd place (out of 7) |
Opponents | andreasstanly (3rd place) fachrymaul (4th place) mnuralif (1st place) troides (5th place) |
Text typed:
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.';
}
}
— (other)
by http://www.javascriptbook.com
(see stats)
|