I have the following Javascript code.
var myString = 'hello world';
var myStringCopy = myString;
myString = null;
console.log(myString, myStringCopy);
the console.log output for the following is this
>null
>"hello world"
how to make sure that all the references have null value