Race Result Details |
Racer | Navin (nikash_) |
Race Number | 10 |
Date | Tue, 6 Jun 2023 9:55:51 |
Universe | code |
Speed |
30 WPM
![]() |
Accuracy | 93.9% |
Rank | 2nd place (out of 8) |
Opponents | varun_1408 (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)
|