JavaScript Challenges for Learning and Growth

I’m sharing these JavaScript challenges to learn and grow together 🚀 If you have more interesting problems, concepts, or real-time scenarios, feel free to share here. Let’s help each other improve and support someone in getting hired. 🚀 JavaScript Tricky Outputs – Can you get all correct? 1️⃣ console.log("1" - - "1") 2️⃣ console.log("1" + + "1") 3️⃣ console.log([] + []) 4️⃣ console.log([] + {}) 5️⃣ console.log({} + []) 6️⃣ console.log("5" - "2" + "3") 👇 Drop your answers in comments! #JavaScript #CodingChallenge #InterviewPrep #Developers #100DaysOfCode#Career#Growth#Learning

The last answer is 33 because the "5"-"2" 3 which means 5 - 3 is equal to 3 + addition operator one value is string javascript concat Operation use 3 is converted to string After that value "3"+ "3" string concationatiin the answer is 33

Like
Reply

1 answer 2 because "1" and "1" strings used but javascript mathematics first is substract second unary operator decrememt maths rule is 1 - (-1) - - is plus that is answer is 2

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories