Good javascript practices

  1. Avoid showing console.log in production:

2) Arrow functions
https://www.youtube.com/watch?v=WuCw9agV3Rc&t=13s

3) https://www.youtube.com/watch?v=C5FXZ2ki13k&list=PLvq-jIkSeTUZ6QgYYO3MwG9EMqC-KoLXA&index=3

4) Variables:
var creates a variable with global approach
let creates a variable within the block

5) A property is a quality of the object, attributes.
Example: name.lenght
A method in an object is an action, they always follow by () because they expect a parameter to be passed.
Example: (let name = “Fernando”)
name.toUpperCase()
6) Comparison operators:
== compares the values. Example (“7” == 7) is true
=== compares the values and data type. This is considered as a good practise so must be used instead of == whenever possible. Example (0 === false) is true.

7)
Function declaration vs function expression

console.log(Addition(1,3));
//function declaration
// Saved for late use.
function Addition1(a, b) {
    return a + b
}

//function expression.
//It is nameless. MUST be declared before use.
let Addition2 = function(a, b){
    return a + b
}
console.log(Addition(1,3));2