I wanted to get all JavaScript Variables. So I followed instructions in this topic and it worked smoothly.
Now I also want to get all strings, that are not declared as variable. For example in below code when I iterate through this I get the value of variable hello in output. However, since "Passing My Message" string is not declared as variable, I don't get this string in output.
<script>
function MyFunction(msg){
alert('Message Passed : '+msg)
}
var hello = "AAA";
MyFunction("Passing My Message");
for (i in this){
console.log(i + " : " + eval(i));
}
</script>
Now my question is, is there any way I can get the Passing My Message string in output.