I'm not new in javascript but i don't understand this behaviour at all.
Why a variable named "name" is typed as string only ? Its a new ES6 feature ??
var name = 56;
console.log(name, typeof name);
name = function(){console.log("ok");}
console.log(name, typeof name);