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 |
---|---|---|---|
28 | 2020-01-31 17:09:47 | 46.16 | 95% |
4 | 2020-01-03 15:01:29 | 50.74 | 97% |
2 | 2020-01-03 14:57:50 | 42.76 | 95% |