Declaring vs Initializing a variable?
问题 I'm curious to know the difference between declaring a variable, and initializing a variable. e.g. var example; // this is declaring var example = "hi" // initializing? Or just "adding a value"? I don't think I'm right there, but what exactly is the definition of each? Or do they basically mean the same thing? 回答1: Edit: @ThisClark said something in the comments, and I went to prove him wrong, and upon reading the spec some more I learned something: Here's an informative except from the