I'm new to programming and am unable to find any good explanation on parameter/arguments, how they work under the hood. For eg:
function changeStuff(a) {
return a = a * 10;
}
var num = 10;
console.log(changeStuff(num)); //prints 100
console.log(num); //prints 10
When I call this changeStuff
function, how does javascript put variable num into parameter - a? Does it do something like a = num
under the hood?
I'm sorry if its a bad or a dumb question.