我尝试制作这样的代码:
var code1 = a, code2 = b, code3 = c;
var x = 3;
for (y = 1; y <= x; y++) {
//this part where i dont know about
alert ();
}
Run Code Online (Sandbox Code Playgroud)
那么如何让它警告code1,code2和code3?我的意思是这会警告值a,b和c.我试着用alert("code"+y);和alert(code+y);,但不会做.
javascript ×1