black

计算机程序设计综合练习

登录

单项选择题

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

A.8
B.9
C.10
D.11

相关考题

单项选择题 下面这段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() 控制台输出内容会有什么?()

多项选择题 var p1 = new Point(2,3);var p2 = new Point(3,2);p1.__proto__.printName = function () { return Oops };p1.printName() p2.printName()var p3 = new Point(4,2);p3.printName() 对以上代码的解释正确的是 ()

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

备案号:湘ICP备2020024380号-1