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
These should all be errors, but only the ones where x is initialized directly give errors:
if(true){letx;if(true){varx=0;// Errorvar{ x =0}={x: 0};// Errorvar{x: x=0}={x: 0};// Errorvar{ x }={x: 0};// No error, even though the let x is being initializedvar{x: x}={x: 0};// No error, even though the let x is being initialized}}