参加比赛

选手成绩

  • 再别康桥

    成绩:25分

1.["1", "2", "3"].map(parseInt)

A.["1", "2", "3"]

B.[1, 2, 3]

C.[0, 1, 2]

D.other

留言板

    2.[typeof null, null instanceof Object]

    A. ["object", false]

    B.[null, false]

    C.["object", true]

    D.other

    留言板

      3.var val = 'smtg'; console.log('Value is ' + (val === 'smtg') ? 'Something' : 'Nothing');

      A.Value is Something

      B.Value is Nothing

      C.NaN

      D.other

      留言板

        4.var ary = [0,1,2]; ary[10] = 10; ary.filter(function(x) { return x === undefined;});

        A. [undefined × 7]

        B. [0, 1, 2, 10]

        C.[]

        D. [undefined]

        留言板

          5.var two = 0.2 var one = 0.1 var eight = 0.8 var six = 0.6 [two - one == one, eight - six == two]

          A.[true, true]

          B.[false, false]

          C.[true, false]

          D.other

          留言板

            6.parseInt(3, 8) parseInt(3, 2) parseInt(3, 0)

            A. 3, 3, 3

            B.3, 3, NaN

            C.3, NaN, NaN

            D.other

            留言板

              7.Array.isArray( Array.prototype )

              A.true

              B.false

              C.error

              D.other

              留言板

                8.var a = [0]; if ([0]) { console.log(a == true); } else { console.log("wut"); }

                A.true

                B.false

                C."wut"

                D.other

                留言板

                  9.1 + - + + + - + 1

                  A.2

                  B.1

                  C.error

                  D.other

                  留言板

                    10.var a = 111111111111111110000, b = 1111; a + b;

                    A.111111111111111111111

                    B.111111111111111110000

                    C.NaN

                    D.Infinity

                    留言板

                      11.var x = [].reverse; x();

                      A.[]

                      B.undefined

                      C.error

                      D.window

                      留言板

                        12.Number.MIN_VALUE > 0

                        A.false

                        B.true

                        C.error

                        D.other

                        留言板

                          13.[1 < 2 < 3, 3 < 2 < 1]

                          A.[true, true]

                          B.[true, false]

                          C.error

                          D.other

                          留言板

                            14.2 == [[[2]]]

                            A.true

                            B.false

                            C.undefined

                            D.other

                            留言板

                              15.3.toString() ; 3..toString() ; 3...toString()

                              A. "3", error, error

                              B."3", "3.0", error

                              C.error, "3", error

                              D.other

                              留言板

                                16.(function(){ var x = y = 1;})(); console.log(y); console.log(x);

                                A.1, 1

                                B.error, error

                                C.1, error

                                D.other

                                留言板

                                  17.var a = /123/,b = /123/; a == b; a === b

                                  A.true, true

                                  B.true, false

                                  C.false, false

                                  D.other

                                  留言板

                                    18."1 2 3".replace(/\d/g, parseInt)

                                    A."1 2 3"

                                    B."0 1 2"

                                    C."NaN 2 3"

                                    D."1 NaN 3"

                                    留言板

                                      19.var lowerCaseOnly = /^[a-z]+$/;[lowerCaseOnly.test(null), lowerCaseOnly.test()]

                                      A. [true, false]

                                      B.error

                                      C. [true, true]

                                      D.[false, true]

                                      留言板

                                        20.[,,,].join(", ")

                                        A.", , , "

                                        B."undefined, undefined, undefined, undefined"

                                        C.", , "

                                        D.""

                                        留言板
                                          共20道题 答了:20道, 坚持就是胜利,再接再厉