单项选择题 function CreatePerson(){this.name = "xiaoming";}var foo = new CreatePerson();以上代码中this是对( )的引用。
单项选择题 function consoleLog(){console.log(i);var i = 10;console.log(i);}consoleLog();console.log(i);以上代码的打印结果分别是()
单项选择题 class Point{constructor(x,y){this.x=x;this.y=y;}toString(){return’(’+this.x+’,’+this.y+’)’;}}const oP=new Point(10,10);console.log(oP.toString())以上代码运行结果正确的是()