JavaScript #3 ~ Naming Variables



This is just a quick post about conventions used in naming variables. Except for a few minor cases, there is actually no limit to naming variables in JavaScript. However, there is a clear convention used between JavaScript developers that ensures easier communication especially within collaborative projects and such. As such, if one is a developer using JavaScript, it is highly encouraged to use 'camel casing' for naming variables.
It is also important to give simple names for variables as much as possible. Making variable names as clear and well matched as possible with the values inside makes it easier to read code and make connections with other lines of code. This is especially important during collaboration with others as it will help other people to easily analyze ones code.
let myHobby = 'Gaming';
let myJob = 'Programmer';