If I have a function with the signature below:
function test(variable1, variable2) {}
And I call it with only one parameter:
test(5);
Then within the test
function, variable2
will be created but with a value of undefined
. I'm interested to know if the JavaScript engine still allocates 32 bits in memory for that variable?