You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// But there's a catch, value of a will be this only when this is applied once, cause if it's applied after once, then it'll take the value of the updated a i.e. -
a**2 //4
// now if we do console.log then value of a will be changed from 2 to 4
console.log(a)
// and now when we do this method -
a**1 //4
a**2 //16
console.log(a) // 16
// and it will eventually be based on the last one.