Stumbled on a problem with var-s and console.log


Hi everyone

So i understand how this works

And I even understand how this works

But what confuses me is how in gods name this works

So im thinking this magically turns Ron without ’ ’ in to a var . Is that possible and can someone explain the use for it?


javascript doesn’t know what is Ron unless you say that.

so when you set var Ron=Ron and then you set myFirstName=Ron javascript knows Ron is a variable because you already told that.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.