JavaScript - Reserved Words

Some words are reserved in JavaScript and cannot be used as variable names.  Some common examples are:

  • case
  • catch
  • for
  • let
  • private
  • this
  • with
  • in 
  • do
 Using these words as variables (var) will present you with an error for your code.

No comments:

Post a Comment

Web Development: Organizing Files and Folders

When you begin to build your website, it's a very clever idea to organize  your files and folders efficiently. You should have: A ...