FAQ: Introduction to JavaScript - Arithmetic Operators

Welcome, @py9568079721.

No, spaces are not needed; however, keeping white space around operators lets them stand out and makes readability and debugging much easier so it is recommended.

y = m * x + b

as opposed to,

y=m*x+b
3 Likes