0
Hours
0
Minutes
0
Seconds
You need Login/Signup to run/submit the code.

How do you implement the following code snippet? [Property Access Increment]

@Yomesh Gupta
171
const counter = {
  value: 0,
};

What modifications would you make to the above snippet / counter object so that output of the following expression would be 1 2 3.

console.log(counter.value, counter.value, counter.value);

Loading IDE...