Statements Vs. Expressions

from blog Josh Comeau's blog, | ↗ original
↗ original
One of the most foundational things to understand about JavaScript is that programs are made up of statements, and statements have slots for expressions. In this blog post, we'll dig into how these two structures work, and see how building an intuition about this can help us solve practical problems.