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 |
---|---|---|---|
3 | 2024-04-11 19:50:28 | 53.35 | 95.9% |
1 | 2024-04-09 15:22:02 | 44.99 | 94.2% |