let x; // create a variable but assign it no value
console.log(`x's value is ${x}`); // logs "x's value is undefined"Undefined / notebook
Undefined
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.