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 |
---|---|---|---|
8 | 2024-10-01 20:26:47 | 64.48 | 96.2% |
2 | 2024-10-01 20:20:15 | 56.51 | 94.2% |