Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 564 Bytes

checklist.md

File metadata and controls

32 lines (25 loc) · 564 Bytes
  1. [NAMING] - Use proper names for variables. If function was called makeFruit, it should return fruit
  2. [CODE STYLE] - use arithmetic operators with assignment operator = if you want to add something to existing value

BAD EXAMPLE:

let a = 1;

a = a + 2;

GOOD EXAMPLE:

let a = 1;

a += 2;
  1. [CODE KNOWLEDGE] - if you creating a method in the object, you don't need to use function keyword, use shortcut instead.

BAD EXAMPLE:

 methodName: function() {
 // your code
},

GOOD EXAMPLE:

 methodName() {
 // your code
},