my question is as simple as this: How can I pass parameters as reference or as value in JavaScript as I could do in PHP.
Example with PHP:
function increase(&$value){
$value++;
return $value;
}
$number = 4;
echo increase($number) . "<br/>";
echo $number;
How can I accomplish something similar with JavaScript?
Thank you and Blessings.