Race Result Details |
Racer | Zihar (troides) |
Race Number | 5 |
Date | Tue, 4 Feb 2025 4:09:35 |
Universe | code |
Speed |
45 WPM
![]() |
Accuracy | 93.9% |
Rank | 5th place (out of 7) |
Opponents | andreasstanly (3rd place) fachrymaul (4th place) ibrahim_musa (2nd place) mnuralif (1st 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)
|