'use strict'

// let plusES5 = function(a, b){
    
//     console.log("A:", a, ", B:", b);
//     let result = a + b;
//     return result;

// };

// console.log(plusES5(9,10));

// ES6 style (arrow function)
// let plusES6 = (a,b) => {
//     console.log("A:", a, ", B:", b);
//     let result = a + b;
//     return result;
// }

// console.log(plusES6(9,10));

// Arrow function with one parameter
// let hello = (name) => {
//     console.log("Hi,", name);
// }
// let hello = name => {
//     console.log("Hi,", name);
// }
// hello("Pon");

// Arrow function wihtout parameter 
// let hiES6 = () => {
//     console.log('Hi, ES6');
// }

// let hiES6 = () => console.log("Hi, ES6");
// hiES6();

// let hiES6 = () => { return "Hi, ES6" };
// console.log(hiES6());
'use strict'

// let plusES5 = function(a, b){
    
//     console.log("A:", a, ", B:", b);
//     let result = a + b;
//     return result;

// };

// console.log(plusES5(9,10));

// ES6 style (arrow function)
// let plusES6 = (a,b) => {
//     console.log("A:", a, ", B:", b);
//     let result = a + b;
//     return result;
// }

// console.log(plusES6(9,10));

// Arrow function with one parameter
// let hello = (name) => {
//     console.log("Hi,", name);
// }
// let hello = name => {
//     console.log("Hi,", name);
// }
// hello("Pon");

// Arrow function wihtout parameter 
// let hiES6 = () => {
//     console.log('Hi, ES6');
// }

// If there's only 1 statement in function, you can do this.
// let hiES6 = () => console.log("Hi, ES6");
// hiES6();

// let hiES6 = () => { return "Hi, ES6" };
// console.log(hiES6());
Add more comment for explain the code
Add more comment for explain the code
