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.'; } }
Game | Time | WPM | Accuracy |
---|---|---|---|
4 | 2024-10-16 19:01:49 | 33.53 | 96.2% |
2 | 2024-10-16 18:56:08 | 33.92 | 96.7% |