Medium-EasyUnderstandJavaScript Fundamentalspredict_output

What output? ```javascript const obj = { x: 1 }; const copy = obj; copy.x = 2; console.log(obj.x); ```

Understand Tests comprehension and ability to explain concepts.

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 34+ more JavaScript Fundamentals questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the JavaScript Fundamentals topic (Programming Languages).

More JavaScript Fundamentals Questions