JavaScript console.log({ someVariable }); explained !

JavaScript console.log({ someVariable }); explained !

JavaScript console.log(variable) function is common for debugging code. In below video you can find more detailed explanation for this function.

When you have a variable and you log it like console.log({ myVariable }); you’re using that shorthand object creation syntax and it gets logged like the object it becomes.

To view or add a comment, sign in

More articles by Milap Patel

Insights from the community

Others also viewed

Explore topics