Computer Science, asked by saysha3377, 1 year ago

Which of the following is not a valid JavaScript variable name?

Answers

Answered by kalyanikishugmailcom
4

java script variable names should not start with a numeral 0-9.they must begin with a letter for example 123test is a valid one java script variable names are case sensitive

Answered by anvitanvar032
0

Answer:

The correct answer to this question is names for variables cannot begin with digits  5.

Explanation:

Given -  JavaScript variable name.

To Find - Which of the following is not a valid JavaScript variable name?

Names for variables cannot begin with digits  5  is not a valid JavaScript variable name.

Variable names in JavaScript shouldn't begin with a number (0-9). They have to start with a letter or an underscore. For instance, 123 test is not a suitable variable name, although _123 test is.

As long as you adhere to a few guidelines, variable names may be rather flexible: They should begin with a letter, an underscore (_), or a dollar symbol ($). You have the option of using numbers, letters, underscores, or dollar signs after the first letter. Use none of the reserved keywords in JavaScript.

#SPJ2

Similar questions