So I\'ve been doing this for as long as I can remember, but I\'m curious if this is really what I should be doing. You write a function that takes a parameter, so you antic
In JavaScript, the argument will be undefined if the user didn't pass it in. You can use the || operator to set the value of the argument if it's undefined: