Is it possible to detect a not-defined variable in JavaScript?

Please explain whether it is possible to detect a not-defined variable in JavaScript.

Comments

  • swagrexx_17swagrexx_17 Boston, MA

    No Nick, you can't. JS is strong typed meaning a variable has to be defined before being used.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion