Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var nextQuestion = function() {
- var q = jQuery('#question').text();
- q = q.replace('=', '').trim();
- q = q.replace('x', '*');
- q = q.replace('÷', '/');
- q = eval(q);
- $('#answer').val(q).trigger('keyup');
- }
- setInterval(nextQuestion, 1000);
Add Comment
Please, Sign In to add comment