I have a(most likely simple and bumd) question about objects. I created the object "jon" of the instance "Person". When I call
console.log(jon.name)
the console will give me out "jon". So far so good.
After running the code and typing in the console itself
jon.name
I was expecting to get "jon" as a result, but the console showed me that jon is undefined. Could someone explain me why?
Here´s a code snippet: https://jsfiddle.net/Fasyx/w0q1rqh0/