Furthermore, it depends on the nature of your parameter, because the expresion is evaluated.
1. If the parameter is a number or a stringed number
var param =5
var param ='5'
and you need to pass it as a decimal number
the syntax is:
2. But if the parameter is an alphanumeric
var param ='foo';
the parameter has to be quoted (to avoid evaluation) and the syntax becomes:
In the first case as the parameter is evaluated, even if the variable is in fact a string, such as '5', when passed it becomes a decimal number.