x will equal = [];Yes, x will still equal an empty array. The value of x, which is an empty array, is what is passed to the function happy, not the variable x itself.
x will equal = [];
ReplyDeleteYes, x will still equal an empty array. The value of x, which is an empty array, is what is passed to the function happy, not the variable x itself.