Quick JS Brain Teaser: Strings are immutable in JavaScript, but what does that really mean in practice? Take a look at this image: What will be the output? A) "KavaScript" B) "JavaScript" C) undefined D) TypeError Does this match your expectation? Drop your answer in the comments and explain WHY! Understanding string immutability is crucial for avoiding common bugs in JavaScript. #JavaScript #JavaScriptInterviewQuestion #JavaScriptFundamentals
JavaScript. Because strings are immutable.
JavaScript
Javascript because primitive value does not mutate
JavaScript
I dont understand posts like this. You would never write code like this that intended to go to production. I venture to say, learn that which matters, not that which helps you flex your ego.