// 1. output? function test() { console.log(a); console.log(foo()); var a = 1; function foo() { return 2 } } test() // 2. output? let c = [100, 200, 330, 400]; let [a, ...b] = c; console.log(a, b); // 3. output? // Ans: 1undefined var y = 1; if (function f() { }) { y += typeof f; } console.log(y)
Anonymous
1. output? Ans: undefined 2 2. output? Ans: 100, [200, 330, 400]
Check out your Company Bowl for anonymous work chats.