JS Mini Challenges Week 1
Guess the outputs without executing the code var foo = function(){ var args = Array.prototype.slice.call(arguments); console.log(args[1]) } foo(1,2,4) //? const obj1 = { a: 5, b: { c: 6 } } const obj2 = Object.assign({},...

Guess the outputs without executing the code var foo = function(){ var args = Array.prototype.slice.call(arguments); console.log(args[1]) } foo(1,2,4) //? const obj1 = { a: 5, b: { c: 6 } } const obj2 = Object.assign({},...

Can’t Skip an Iteration with "Continue" const arr = [1, 2, 3, 4, 5, 6, 7] arr.forEach((val) => { if (val === 3) { continue; } console.log("current: ", val) } ) // SyntaxError: Unsyntactic continue Can’t End A Loop Early with "Br...
