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.