Race Result Details |
Racer | Steven (vivihuang) |
Race Number | 9 |
Date | Mon, 4 Aug 2025 2:58:32 |
Universe | code |
Speed |
79 WPM
![]() |
Accuracy | 99.3% |
Rank | 1st place (out of 5) |
Opponents | cynthiamxz (2nd place) flaen (3rd place) zhangzzh123_ (4th 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)
|