JavaScript · Naming convnetions · Programming

JavaScript Variable Naming Convention

The following are the rules for naming JavaScript variables. Names must start with an alphabet or underscore but never with a numeral. It must be composed of letters, numbers and underscores only. Names must not contain spaces.Valid names: var name = ‘foo’; var _code = 123; String str2 = new String(‘Hello’); var count_2 = 123; … Continue reading JavaScript Variable Naming Convention