black

计算机程序设计综合练习

登录

单项选择题

执行以下代码,alert的输出结果为()
var msg = 'hello';for (var i = 0; i< 10; i++){ var msg = 'hello' + i * 2 + i;}alert(msg);

A.hello
B.hello189
C.hello30
D.hello27

相关考题

单项选择题 分析下面javascript代码:function out(x){var temp =2;function inside(y){document.write(x +y +(temp--));}inside(5);}out(3);输出结果为:()

单项选择题 下面这段JavaScript代码的的输出是什么?()var myObject = { foo: "bar", func: function() { var self = this; console.log(this.foo); console.log(self.foo); (function() { console.log(this.foo); console.log(self.foo); }()); }};myObject.func();

多项选择题 var p3 = new Point(2,3);var p4 = new Point(3,2);p3.__proto__.printName = function () { return Oops };p3.printName() p4.printName()var p5 = new Point(4,2);p5.printName() 控制台输出内容会有什么?()

All Rights Reserved 版权所有©计算机考试题库(PPhuashu.com)

备案号:湘ICP备2020024380号-1