Here I noticed something messed up in my browser console. I tried to access the properties of the specified JavaScript object. But it shows undefined, I don't know why this is happening. Also, check out some other browsers like Firefox and Edge. The same problem happened there.
Asked
Active
Viewed 29 times
0
-
1What is your question here exactly, is it about the `undefined` that's appearing or is it about no properties being logged in the console when doing `console.dir()`? – Nick Parsons Apr 29 '23 at 15:00
-
Restart broswer – vatsal mangukiya Apr 29 '23 at 16:16
-
"*I tried to access the properties of the specified JavaScript object.*" - the value of the `greetings` variable is a string, not an object. – Bergi Apr 29 '23 at 19:04