Did you find any use cases where var is actually a good idea? Or is this keyword totally useless now that let and const have been added?
var
let
const
just compat reasons. If you want make something that runs in all browsers without compilation, you would go for var.
But I guess this is just a thing for tiny libs.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Did you find any use cases where
var
is actually a good idea? Or is this keyword totally useless now thatlet
andconst
have been added?just compat reasons. If you want make something that runs in all browsers without compilation, you would go for var.
But I guess this is just a thing for tiny libs.