What are undeclared and undefined variables in Javascript?

Can anyone explain what is undefined variable and undeclared variable in JavaScript with relevant examples.
Thanks

If you have this kind of question, there are plenty of good guides on the internet:

https://techbrij.com/javascript-null-undefined-undeclared

then use the forum to ask specific questions. This way, you have the best of both worlds

1 Like

@stetim94 Thanks for the link.I have understood it.Actually my browser didn’t show this link. But thanks a lot.

I am sure there are plenty of other guides/tutorials which can be found using google which explains the concept

Reading documentation and mastering new concepts will regular happen even if you have been programming for years.

1 Like

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