• 2022-06-17
    运行下列JavaScript代码,则弹出的对话框中显示的数值是16。var test=(false)?16:30;alert(test);
    A: 正确
    B: 错误
  • B

    内容

    • 0

      运行alert((33).toString(16))语句,在弹出对话框中显示的是: A: 30 B: 48 C: 16 D: FF

    • 1

      智慧职教: alert("test")与Alert("test")都表示以警告框的形式弹出test提示信息

    • 2

      智慧职教: 下面JS代码在浏览器运行,弹出框内容是``` var a;var b;alert(a === b);```

    • 3

      下列代码弹出的正确结果是?() A: 0,test,true,true B: 0,test,true,false C: 1,test,1,2 D: 1,truetest,2,1

    • 4

      以下代码片段的输出结果为( ). &#91;script type="text/javascript"&#93; var foo =1; function Test(){ alert(foo); var foo=2; alert(foo); } Test(); </script A: 1,2 B: 2,1 C: 1,undefined D: undefined,2