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 |
---|---|---|---|
25 | 2019-03-30 07:19:54 | 56.43 | 96% |
20 | 2019-03-30 07:08:59 | 57.04 | 97% |