Imagine you have an object structured like this:
obj = {a:{aa:1}, b:2};
You decide to create a convenient variable (referred to as a pointer) named x that points to obj.a.aa with the following code:
x = obj.a.aa;
Next, your goal is to update the value of obj.a.aa to 3 using the x variable like so:
x = 3; // This should change obj.a.aa to 3
console.log(obj.a.aa); // Currently shows 1 (I want it to show 3)
Your question arises - how can you configure x so that assigning a value to it will reflect in obj.a.aa?
Although obj.a.aa is considered a primitive value, the challenge lies in properly setting up a variable that references it for seamless property assignment.