CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Two Names for One Array

JavaScript code walkthrough · Question 23
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