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 |
---|---|---|---|
5 | 2020-12-22 16:08:38 | 40.70 | 95% |
1 | 2020-12-19 16:35:30 | 34.79 | 97% |