1. Write any four variable naming rules in JavaScript.
Answers
Answered by
0
Heya ✋
Let see your answer !!!!
Rules for naming a variable are : -
➡ A Variable name must began with a letter.
➡ Variable names can have alphabets and numbers.
➡ No special character is allowed in the name except for underscore ( _ ).
➡ Space is not allowed in variable name.
➡ Reserved words cannot be used as variable names.
➡ In case of string variables , variable name is followed by '$' sign . e.g., ADDRESS$ , name$ etc.
Thanks :))))
Let see your answer !!!!
Rules for naming a variable are : -
➡ A Variable name must began with a letter.
➡ Variable names can have alphabets and numbers.
➡ No special character is allowed in the name except for underscore ( _ ).
➡ Space is not allowed in variable name.
➡ Reserved words cannot be used as variable names.
➡ In case of string variables , variable name is followed by '$' sign . e.g., ADDRESS$ , name$ etc.
Thanks :))))
Similar questions