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
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among 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