Difference between var and just making something = to something?

What is the difference betwee

var xSpeed=2;

and

xSpeed=2;