4 ms·
The variables are the same. Var statements get hoisted to the beginning of the function. That said, it is cleaner to only 'var' each variable once, to suppress
by jackweirdy 12y ago
The variables are the same. Var statements get hoisted to the beginning of the function.
That said, it is cleaner to only 'var' each variable once, to suppress this confusion.