In Google Chrome console, when I assign something to a variable and hit enter, it prints undefined to the console. Why does this happen? I thought something only prints to the console if I log it specifically.
let x = 1;
undefined
In Google Chrome console, when I assign something to a variable and hit enter, it prints undefined to the console. Why does this happen? I thought something only prints to the console if I log it specifically.
let x = 1;
undefined