1.----------------------------------------------------
var function () {this. Name = ' Peter '; return ' Jack '}; var New Fun ();
Excuse me, p.name is:
A: ' Peter ', B: ' Jack ', C:null, d:undefined
2.----------------------------------------------------
var function () {this. Name = ' Peter '; return ' Jack '; var New Fun ();
Excuse me, p.name is:
A: ' Peter ', B: ' Jack ', C:null, d:undefined
3.----------------------------------------------------
var function =' peter '}}varnew fun (); var New = ' Jack '= ' Tom ';
May I ask A.info.name and b.info.name respectively:
A: ' Jack ', ' Tom ', B: ' Jack ', ' Jack ', ' C: ' Tom ', ' Tom ', ' d: ' Tom ', ' Jack '
4.----------------------------------------------------
var function () {this. info =' peter '}} var New Fun (); var New = ' Jack '= ' Tom ';
May I ask A.info.name and b.info.name respectively:
A: ' Jack ', ' Tom ', B: ' Jack ', ' Jack ', ' C: ' Tom ', ' Tom ', ' d: ' Tom ', ' Jack ', E: Other
5.----------------------------------------------------
var function = { ' Peter ', ' + }'varnew fun (); var New = ' Jack '= ' Tom ';
May I ask A.name and b.name respectively:
A: ' Jack ', ' Tom ', B: ' Jack ', ' Jack ', ' C: ' Tom ', ' Tom ', ' d: ' Tom ', ' Jack ', E: Other
6.----------------------------------------------------
var function () {this. info ='peter '=' peter ')} var New Fun (); var New = ' Jack '= ' Tom ';
May I ask A.info.name and b.info.name respectively:
A: ' Jack ', ' Tom ', B: ' Jack ', ' Jack ', ' C: ' Tom ', ' Tom ', ' d: ' Tom ', ' Jack '
These JavaScript interview questions, how many have you done?