4 ms·
Just for anyone who feels pleased with their mental maths and thinks they might be able to take on their calculator head-to-head: window.setInterval(function()
by skellystudios 12y ago
Just for anyone who feels pleased with their mental maths and thinks they might be able to take on their calculator head-to-head:
window.setInterval(function(){$('#question-answer').val(eval($('#question').html().replace("×","").replace("÷","/").replace(/(.)²/,"Math.pow($1,2)").replace(/√(.*)/,"Math.sqrt($1)"))).trigger("keyup")},10)
- bengali3 12y agoyour paste lost an asterisk * in the first replace statement