Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
09-23-2012, 09:18 AM #1
- Join Date
- Sep 2012
- Thanked 0 Times in 0 Posts
Sum of same variables in a repeated function
<button onclick="myFunction3()">Click here to start le quiz</button>
prompt(x + "x" + y + "=?","");
var name=prompt(x + "x" + y + "=?","");
else if (name!=x*y)
var z="You've got" + sum(score) + "Out of 10!";
1. Please state any errors in this code. (If any)
Last edited by qwertyoone; 09-23-2012 at 09:24 AM.
09-23-2012, 10:48 AM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,582 Times in 2,560 Posts
2. This forum is not a free coding service. As a general rule, the people helping out in this forum don't write code for others, but try to help with fixing code that doesn't work. You may perhaps get someone to write this script for you, but you'll be far more likely to get help if you have made a substantial effort and written some code yourself. Then someone here will almost certainly help you correct/improve your work.
"To get back my youth I would do anything in the world, except take exercise, get up early, or be respectable."- Oscar Wilde (Irish Poet, Novelist, Dramatist and Critic, 1854-1900)
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.