-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
Hi team,
I’d like to add a new section of ninja-level JavaScript questions for advanced learners and interview prep. These questions are tricky, edge-case, or uncommon topics that even experienced developers often get wrong.
Some example questions I propose:
- Why does
console.log(a); var a = 10;printundefined? Explain hoisting. - Explain why
[] == ![]evaluates totrue. - Difference between
NaN === NaNandObject.is(NaN, NaN). - What will
for(var i=0;i<3;i++){ setTimeout(()=>console.log(i),1000); }print and why? - Explain why
typeof nullreturns"object". - What will
console.log([] + {})print? Why? - Explain sparse arrays like:
let a=[1,2,3]; a[10]=99; console.log(a.length);
I can contribute a full list of 20–30 ninja-level JS questions with explanations for the repo if approved.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels