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

Objects Are References

JavaScript code walkthrough · Question 8
mediumVariables

Code

Read carefully. What does this print?
1const a = { x: 1 };
2const b = a;
3b.x = 5;
4console.log(a.x);

Your answer