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
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.
Why are you using var?
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