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 | 2020-11-18 14:07:25 | 34.27 | 90% |
1 | 2020-11-18 13:33:15 | 31.34 | 89% |