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-04 07:33:47 | 19.84 | 96.4% |
3 | 2024-10-04 07:30:41 | 18.72 | 96.1% |