DEV Community

Discussion on: Newbie guide: socket.IO

Collapse
 
thewashiba profile image
Lukas

Why are you using var?

Collapse
 
kauresss profile image
Kauress

As this is a newbie article on socket.IO, I wanted to make it accessible to all and focus on socket.IO, instead of explaining variable scope and hoisting so used the more familiar 'var'. In the socket.IO project I will use let and const