Race Result Details |
| Racer | Sort (sortoite) |
| Race Number | 2 |
| Date | Mon, 20 May 2024 1:58:29 |
| Universe | code |
| Speed |
49 WPM
Try to beat?
|
| Accuracy | 93% |
| Rank | 3rd place (out of 7) |
| Opponents | apollo_0130 (2nd place) shaun_0421 (1st place) sinbard (5th place) trickyrlee (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)
|
