π Try it out - Storing and using complex data types
You can store complex types like the Date Object in variables as well.
Run these lines in the Console to see the output. The last line concatenates the value of question, an empty space, and the return value of a logical expression.
let question = "Can we celebrate yet?";
let today = new Date();
console.log(typeof today);
console.log(question + " " + (today.getFullYear() > 2020))