[英]This JavaScript code is not being executed
所以我對 JavaScript 很陌生。 只是想知道為什么不執行此代碼:
var x = 7
var y = 5
if (x < y) {
alert("x is less than y")
}
else {
alert ("x equal to y")
}
else if (x > y) {
alert("x is greater than y")
}
if (x < y) {
alert("x is less than y")
} else if (x > y) {
alert("x is greater than y")
} else {
alert ("x equal to y")
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.