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?
Thanks!
Perhaps the text box used to filter the output has a value that causes the output to be empty.
When I debug a program, I often forget to empty the search box, and I can't find the specified output.

And the level in the drop-down box here will also affect the output. For example, the output here will disappear as long as you cancel the info.

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.