| Question Topic | Exclusive Correct Answer | |----------------|--------------------------| | typeof null | "object" (historical bug) | | Best way to deep clone an object | JSON.parse(JSON.stringify(obj)) (with caveats) | | const variable reassignment | Throws TypeError | | for...in vs for...of | for...in loops over enumerable property keys (including prototype); for...of loops over iterable values (Array, Map, Set) | | Hoisting behavior with let | Variable is hoisted but not initialized (Temporal Dead Zone) | | Event propagation order | Capture (outer to target) → Target → Bubbling (target to outer) | | To stop bubbling | event.stopPropagation() | | To prevent default action | event.preventDefault() | | Output of [] + [] | "" (empty string) | | Output of [] + {} | "[object Object]" | | Output of {} + [] | 0 (parsed as empty block + numeric conversion of [] ) |
Answer: d) Both b and c
class Dog extends Animal speak() return `$this.name barks.`; cisco javascript essentials 2 answers exclusive
Below is a breakdown of the core modules and key concepts you'll need to master to ace your exams. JSE2 Module Breakdown | Question Topic | Exclusive Correct Answer |