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 | 2023-04-16 09:47:44 | 28.87 | 92% |
26 | 2023-04-16 09:43:50 | 29.04 | 91% |