Y
Hacker News
new
|
ask
|
show
|
jobs
by
pjmlp
3014 days ago
Variables declared with
var
are still strongly typed. Just because the keyword exists in JavaScript, it doesn't mean it has the same semantic meaning.
var p = new Person(); p = 1234; // This will trigger a compile time error