以下代码表示的含义是。 var timer = setInterval(function(){ console.log("Hello World"); },1000);
举一反三
- 下列代码的执行结果为|var fn = "hello";|fn();|function fn(){ |console.log("world")|}; A: "hello" B: "world" C: undefined D: fn is not function
- 下列代码的执行结果为( )。 var fn = “hello”; fn(); function fn(){ console.log(“world”)}; A: “hello” B: “world” C: undefined D: fn is not function
- 写出以下程序的执行结果为( )function test() {console.log(a);var a = 1;console.log(a);console.log(hello)}tset();
- 下面代码的运行结果是( )。var str= "hello world" ;var str1=str.toUpperCase();var str2=str.toLowerCase() ;alert (str1) ;alert (str2) ; A: "HELLO WORLD","HELLO WORLD" B: "HELLO WORLD","hello world" C: "hello worl","HELLO WORLD" D: "hello world","hello world"
- 以下代码运行的结果是输出 var a = b = 10; (function(){ var a=b=20 })(); console.log(b);