let string = 'a string'; // valid
string = true; // yup, valid
string = 0; // still valid
string = {}; // you guessed it...
const foo = function() {
console.log('bar');
};
typeof foo
"function"
typeof {}
"object"
typeof []
"object"
typeof new Map()
"object"