In the knowledge of the published and JavaScript-related questions, and everyone to share, although it is a long time ago, but these questions are quite classic, inevitably people think that JavaScript is really the language of egg pain.
(function () {return typeof arguments; })(); A. "Object" B. "Array" C. "Arguments" D. "Undefined"
Answer: A
02.
var f = function g () {return 23; }; typeof G (); A. "number" B. "Undefined" C. "function" D. eorror
Answer: D
03.
(function (x) {delete x; return x; }) (1); A. 1 B. null C. undefined D. Error
Answer: A
04.
var y = 1, x = y = typeof x; X A. 1 B. "Number" C. undefined D. "Undefined"
Answer: D
05.
(function f (f) {return typeof F (); }) (function () {return 1; }); A. "number" B. "Undefined" C. "function" D. Error
Answer: A
06.
var foo = {bar:function () {return this.baz; }, baz:1}; (function () {return typeof arguments[0] (); }) (Foo.bar); A. "Undefined" B. "Object" C. "number" D. "Function"
Answer: A
07.
var foo = {bar:function () {return this.baz; }, baz:1}; typeof (F = foo.bar) (); A. "Undefined" B. "Object" C. "number" D. "Function"
Answer: A
08.
var F = (function f () {return "1"; }, function g () {return 2; })(); typeof F; A. "string" B. "number" C. "function" D. "Undefined"
09.
var x = 1; if (function f () {}) {x + = typeof F;} X; A. 1 B. "1function" C. "1undefined" D. NaN
Answer: C
10.
var x = [typeof x, typeof y][1]; typeof typeof X; A. "Number" B. "string" C. "Undefined" D. "Object"
Answer: B
11.
(function (foo) {return typeof foo.bar; }) ({foo: {bar:1}}); A, "undefined" B, "Object" C, "number" D, Error
Answer: A
12.
(Function f () { function f () { return 1; } return f (); function f () { return 2; } }) (); a, 1 b, 2 c, error (e.g. "too much recursion") d, undefined
Answer: B
13.
function f () {return F; } new F () instanceof F; A, True B, False
Answer: B
14.
With (function (x, undefined) {}) length; A, 1 B, 2 C, undefined D, Error
Answer: B
15.
Which of the following statements produces a run error: () A.var obj = (); B.var obj = []; C.var obj = {}; D.var obj =//;
an answer; A
This article is from the "TRIGKIT4" blog, make sure to keep this source http://trigkit4.blog.51cto.com/7272322/1546293
Some egg-sore javascript syntax features