Race Result Details |
Racer | Andreas Stanly Pangumihardja (andreasstanly) |
Race Number | 3 |
Date | Tue, 4 Feb 2025 4:09:29 |
Universe | code |
Speed |
49 WPM
![]() |
Accuracy | 94.6% |
Rank | 3rd place (out of 7) |
Opponents | fachrymaul (4th place) ibrahim_musa (2nd 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)
|