const doSomething = (foo) => {
foo.push('rsa')
foo = ["World"]
return foo;
}
let blah = ["Hello"];
console.log(blah);
doSomething(blah);
console.log(blah);
Please Explain me the output
output will be like below I am really confused with javascript so please can anyone explain this.
output will be like below I am really confused with javascript so please can anyone explain this.
output will be like below I am really confused with javascript so please can anyone explain this.
[
"Hello"
]
[
"Hello",
"rsa"
]