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 |
---|---|---|---|
21 | 2024-04-20 12:54:47 | 45.26 | 95.7% |
19 | 2024-04-18 17:31:44 | 42.70 | 94.8% |