You are on page 1of 1

Variable Naming

Allowed Not Allowed / Not Recommended

Best Practice: Allowed but


let userName let user_name
camelCase bad practice!

Only letters Starting digits


let ageGroup5 let 21Players
and digits not allowed

Starting with $ No special


let $kindOfSpecial let user-b
is allowed characters!

Starting with _ Keywords not


let _internalValue let let
is allowed allowed

You might also like