You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strive to keep lines under 120 chars (everyone hates horizontal scroll). Atom has a ruler which helps to identify where is the limit, go to settings and set Preferred Line Length: 120.
If the code fits on one line and doesn't break our code conventions, strive to keep it on one line.
We use 4 spaces indentation. Atom can do this just go to settings and set Tab Length: 4
JS
Type of variables:
let: the variable may be reassigned.
const: the variable can’t be reassigned.
Naming variables:
We are using the Hungarian notation, Ex:
let carColor;
const houseDoorSize;
String:
For the string we use simple quotes ' ', Ex:
constmyName='Mike Wazowski';
Formatting:
This how we're going to formatting our code. If one condition use brackets, all the conditions will need brackets too.