Race Result Details |
Racer | #! (mr_luminosity) |
Race Number | 2 |
Date | Wed, 20 Oct 2021 2:06:47 |
Universe | code |
Speed |
26 WPM
![]() |
Accuracy | 93.9% |
Rank | 1st place (out of 3) |
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.';
}
}
—
Throw
|