JavaScript Demo: Standard built-in objects - undefined

function test(t) {
if (t === undefined) {
return 'Undefined value!';
}
return t;
}

let x;

console.log(test(x));
// Expected output: "Undefined value!"