What value is obtained when executing the following code?
let state = "tired";
let action = state === "tired" ? "rest" : "work";
console.log(action);
What value is obtained when executing the following code?
let state = "tired";
let action = state === "tired" ? "rest" : "work";
console.log(action);