• +91 9723535972
  • info@interviewmaterial.com

JavaScript Framework Interview Questions and Answers

Question - What are the variable naming conventions in JavaScript?

Answer - The following rules are to be followed while naming variables in JavaScript: 1. You should not use any of the JavaScript reserved keyword as variable name. For example, break or boolean variable names are not valid. 2. JavaScript variable names should not start with a numeral (0-9). They must begin with a letter or the underscore character. For example, 123name is an invalid variable name but _123name or name123 is a valid one. 3. JavaScript variable names are case sensitive. For example, Test and test are two different variables.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners