本篇文章会提供10题的练习题练习
Q1
我们了解原型的概念,那么请问在 JavaScript 中是否所有「物件」、「阵列」以及「函式」都有原型属性?
A: 全都有
B: 全都没有
C: 只有 「物件」、「阵列」 有
D: 我不确定
答案: A
备注: 无
Q2
A: 王小明
B: 隔壁老王
C: daddyName is not defined
D: undefined
答案: B
备注: 无
Q3
A: Casper
B: Hello
C: hello is not defined
D: undefined
E: sayHi
答案: E
备注: 无
Q4
A: HexSchool 1 && HexSchool 2
B: John && HexSchool 2
C: HexSchool 1 && Doe
D: John && Doe
答案: D
备注: 无
Q5
A: {name: "漂亮阿姨", age: "25"}
B: {name: "妈妈", age: "30"}
C: {name: "爸爸", age: "45"}
D: mom is not defined
答案: A
备注: 无
Q6
A: undefined
B: joun
C: default
D: 以上皆非
答案: C
备注: 无
Q7
A: 你呼叫了我
B: TypeError: Cannot set property 'callFu' of undefined
C: 100
D: b.callFu is not a function
答案: A
备注: 无
Q8
A: { name: '爸爸', age: 28 }
B: { }
C: undefined
D: 以上皆非
答案: B
备注: 无
Q9
A: 爸爸
B: undefined
C: name is not define
D: { }
答案: A
备注: 无
Q10
A: Casper
B: Mark
C: sayHi
D: hello
答案: C
备注: 无