Have this very simple snippet:
let pizza ='Marguerita'; console.log(pizza);
The above snippet works in that run snippet, but this code is not working in my browser Google Chrome Version 96.0.4664.110 (Official Build) (64-bit), in console it appears always as UNDEFINED. I have also cleared the cache but still shows undefined. Anyone can explain the possible cause?
Dude, you always get 1-undefined in the end. There is nothing wrong with the code. Just try to uninstall chrome and then reinstall it.
What I got is:
1-undefined always stays at the bottom, that is not the value of
pizza if you are getting confused. Just try reinstall chrome, there might be some bug there, in your version or installation.