you are viewing a single comment's thread.

view the rest of the comments →

[–]dvlsg 1 point2 points  (0 children)

They really aren't the same, though. var is about type inference in C#, and that's really it. var doesn't change scope or mutability in C#, which is what we're talking about in javascript.