How can I distinguish between expressions and statements in javascript??
That’s easy by knowing what they are and how they work
https://www.w3schools.com/js/js_regexp.asp
https://www.w3schools.com/js/js_statements.asp
Also they give out diffrend errors if you run your code if you learn those you be alway’s able to know
Can you elaborate on the question?
You can read this blog post for a quick rundown. And there is always You Don’t Know JS: Types & Grammar.