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 |
---|---|---|---|
31 | 2024-03-27 12:43:57 | 55.24 | 98% |
16 | 2024-03-26 05:16:35 | 48.79 | 95.1% |