function calculate () { var s = 2; var x = 2; var y = 3; if (x > 4) { s=s + 2; } else if (y > 4) { s=s + 4; } else { s+=3; } alert ("s="+s); }//close function
+2
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “function calculate () { var s = 2; var x = 2; var y = 3; if (x > 4) { s=s + 2; } else if (y > 4) { s=s + 4; } else { s+=3; } alert ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » function calculate () { var s = 2; var x = 2; var y = 3; if (x > 4) { s=s + 2; } else if (y > 4) { s=s + 4; } else { s+=3; } alert ("s="+s); }//close function