TGViewer
Coding Interview Preparation Coding Interview Preparation @coding_interview_preparation · 5.9K subscribers
Post #1343 367
🔍 GUESS THE OUTPUT #1 - full breakdown

We apologize for marking wrong answe as correct in previous question. Explanation was correct, but right answer was not marked properly by accident.

Correct answer is false.

Here are some additional ones.

javascript
console.log(0.1 + 0.2 === 0.3);
console.log([1, 2, 3] + [4, 5, 6]);
console.log(typeof NaN);


Answers:
1️⃣ false - floating point math isn't exact. 0.1 + 0.2 = 0.30000000000000004
2️⃣ "1,2,34,5,6" - arrays get coerced to strings and concatenated, not added
3️⃣ "number" - yes, NaN is technically a number type. Ironic, we know.

Got all 3 right? Drop a ✅
Missed one? Drop the number you got wrong - let's talk about it.
More from @coding_interview_preparation
  1. Oct 8, 2026If you're prepping for system design interviews, this repo is gold It contains a curated,…
  2. Oct 6, 2026document post
  3. Oct 4, 2026💼 Why Your Resume Gets Rejected Before a Human Reads It You may have good skills and proj…
  4. Oct 2, 2026🧠 Coding Myths You Should Stop Believing There's a lot of advice online about learning to…
  5. Oct 1, 2026Most Asked Topics in AI Engineer Interviews Based on 2026 candidate reports
  6. Sep 30, 2026💼 What Companies Actually Look For in a Fresher Think companies only care about your CGPA…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →