Javascript: difference between a statement and an expression?
问题 I asked this question earlier, and after thinking about the topic some more, I began to wonder where the seemingly fuzzy boundary between the meanings of the terms "statement" and "expression" lies. Are all statements also expressions? Where do the return values in a REPL console come from? They don't always seem to make any intuitive sense. Of course if you type 1+1 , you'll get 2 , but other times it isn't as obvious what the logic is. Given that anything typed into REPL produces some value