Mahesh R.’s Post

🧠 Let’s Test Your TypeScript Knowledge! (Data Types & Operators Quiz) 🚀 If you're learning TypeScript, here’s a quick quiz to challenge your basics 👇 Drop your answers in the comments! 💬 🔹 Quiz Questions 1️⃣ What is the key difference between JavaScript and TypeScript? A) Both are statically typed B) JavaScript is dynamically typed, TypeScript is statically typed C) Both are dynamically typed D) TypeScript is dynamically typed 2️⃣ What happens if you assign a string to a number variable in TypeScript? A) No error B) Type mismatch error C) Converts automatically D) Ignores value 3️⃣ Which is NOT a primitive data type? A) number B) string C) array D) boolean 4️⃣ What is the output of "5" + 3 in JavaScript? A) 8 B) "53" C) Error D) 5 5️⃣ What does any type do? A) Strict typing B) Disables type checking C) Converts values D) Throws error 6️⃣ What is the result of 10 % 3? A) 1 B) 3 C) 0 D) 10 7️⃣ Which operator checks both value and type? A) == B) === C) != D) = 8️⃣ What does true && false return? A) true B) false C) null D) undefined 9️⃣ What is the purpose of void type? A) Returns number B) Returns nothing C) Returns string D) Throws error 🔟 Which operator is used for exponentiation? A) ^ B) ** C) * D) // 🔥 Bonus Question What will 5 === "5" return? 🤔 💡 Comment your answers below! I’ll share the correct answers in the next post. #TypeScript #JavaScript #QuizTime #Programming #Coding #Developers #SoftwareTesting #SDET #AutomationTesting #Learning #TechSkills #CodeChallenge #FrontendDevelopment #BackendDevelopment #FullStack #DailyLearning #CareerGrowth

To view or add a comment, sign in

Explore content categories