Consider this JS code:
var name = "jack"; console.log(typeof name); //'string' name = {age: 40}; console.log(typeof name); //'string'
Why does changing the variable does not change its type?