CJCoding With Joseph
← Back to Question List
JavaScript Code Walkthrough #23

Two Names for One Array

mediumArrays

📄 Code

Read carefully — what does this print?
1let a = [1, 2, 3];
2let b = a;
3b.push(4);
4console.log(a.length);
5console.log(a[3]);

🎯 Your Answer