What are the variable naming conventions in javascript?



What are the variable naming conventions in javascript?..

Answer / Suyash Kumar

In JavaScript, variable names should follow the rules for identifying names: they must begin with a letter (a-z, A-Z) or an underscore (_), and cannot start with a number. Variable names can consist of letters, digits, underscores, and dollar signs ($). It's also recommended to use descriptive and meaningful names for variables.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

How is a relation not a function?

1 Answers  


how to post the form without submit button with help of javascript

2 Answers  


What is the use of a typedarray object in javascript?

1 Answers  


what is the extension of java script.

1 Answers  


What are the properties of stack?

1 Answers  


What is the difference between ‘function declaration’ and ‘function expression’?

1 Answers  


How many functions are there in javascript?

1 Answers  


Please write the Code of simple javascript calculator withot eval() function

1 Answers  


You have an asp. Net web application running on a web-farm that does not use sticky sessions - so the requests for a session are not guaranteed to be served the same machine. Occasionally, the users get error message validation of view state mac failed. What could be one reason that is causing this error?

1 Answers  


How to calculate fibonacci numbers in javascript?

1 Answers  


What does the enableviewstatemac setting in an aspx page do?

1 Answers  


Explain why asynchronous code is important in javascript?

1 Answers  


Categories