4 questions · 4 answered
JavaScript questions
Questions asked by learners preparing for interviews and placements, answered by other members. Ask your own and it appears here too.
- 3answers 11votes setTimeout 0 runs after promise.then? console.log('A'); setTimeout(() => console.log('B'), 0); Promise.resolve().then(() => console.log('C')); console.log('D'); I said A D B C, answer is A D C B. w… JavaScriptSneha Reddy·1 month ago
- 2answers 4votes is var ever used in new code? or does it only exist for quiz questions JavaScriptTushar Goyal·1 month ago
- 2answers 8votes 0.1 + 0.2 != 0.3 but 0.25 + 0.5 == 0.75? I know "floating point" is the answer but why does it break for 0.1 and 0.2 and not for 0.25 and 0.5 JavaScriptKarthik Rajan·1 month ago
- 3answers 14votes why is [] == ![] true in js?? got this in a battle and i was 100% sure its false. empty array equal to not of itself?? how can someone explain step by step pls JavaScriptPriya Sharma·2 months ago
Learn JavaScript properly
Structured lessons on DSA, core CS, Java and interview skills, each ending in a quiz so you know it stuck.