When setting any variable, it is a best practice to put a space before and after the = because it makes the code a bit more readable -- it differentiates the spacing of declaration from the spacing of a function call. So, our code would look like this:
Of course, this is more a matter of style than functionality, which ultimately comes down to preference. So, choose what you prefer; but, this is usually an industry standard.
When setting any variable, it is a best practice to put a space before and after the
=
because it makes the code a bit more readable -- it differentiates the spacing of declaration from the spacing of a function call. So, our code would look like this:Of course, this is more a matter of style than functionality, which ultimately comes down to preference. So, choose what you prefer; but, this is usually an industry standard.