在知乎上看到的有人发布的和javascript有关的试题,和大家分享下,虽然是N久前的事了,但这些题相当经典,不免让人觉得javascript真是门蛋疼的语言。
1.
A. "object" B. "array" C. "arguments" D. "undefined"
答案:A
2.
A. "number" B. "undefined" C. "function" D. Eorror
答案:D
3.
A. 1 B. null C. undefined D. Error
答案:A
4.
A. 1 B. "number" C. undefined D. "undefined"
答案:D
5.
A. "number" B. "undefined" C. "function" D. Error
答案:A
6.
A. "undefined" B. "object" C. "number" D. "function"
答案:A
7.
A. "undefined" B. "object" C. "number" D. "function"
答案:A
8.
A. "string" B. "number" C. "function" D. "undefined"
答案:B
9.
A. 1 B. "1function" C. "1undefined" D. NaN
答案:C
10.
A. "number" B. "string" C. "undefined" D. "object"
答案:B
11.
A、“undefined” B、“object” C、“number” D、Error
答案:A
12.
A、1 B、2 C、Error (e.g. “Too much recursion”) D、undefined
答案:B
13.
A、true B、false
答案:B
14.
A、1 B、2 C、undefined D、Error
答案:B
15.
答案:A
原文链接:https://www.f2er.com/js/57629.html