Huh? Not sure what you're talking about here - strings are not immutable in JS. Your console.log(name) will show Wizard in the console. The return value of console.log is undefined, but that is always the case with console.log - whatever you pass to it
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Huh? Not sure what you're talking about here - strings are not immutable in JS. Your
console.log(name)
will showWizard
in the console. The return value ofconsole.log
isundefined
, but that is always the case withconsole.log
- whatever you pass to it