I wanted to use a string in global scope inside a function. I read somewhere that different scopes have different values for their respective local variables even if they have the same name.
But in my case, I am getting something like this
https://i.stack.imgur.com/hyqZk.png (this link contains the image)