Medium-EasyUnderstandJavaScript Fundamentalspredict_output

Predict output: ```javascript const a = [1, 2, 3]; const b = [...a]; b.push(4); console.log(a.length, b.length); ```

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