Currently using this to understand difference between expressions and statements because couldn't see an MDN overview on statements (that would be helpful).
My two questions are:
An expression is something that resolves to a value. I think function expressions are assignment expressions. Is it an expression because when it's invoked it resolves to a value?
I think
2 + 2
is not a statement. If it is not - why? A statement is loosely defined as an instruction to perform action.