Functions
function nameFunc(para1, para2) {
return para1 + para2;
}
// returns sum of parameters
nameFunc(arg1, arg2);
// calling func
const nameFunc = function() {
return value;
}
// anonymous function - is baso an inline function with no name,
// nameFunc is the name of the function,
// yes its retarded and no u havent read that wrong
const funcName = (para1, para2) => {
// multi lines of code
return value;
}
const funcName = para => para * 2;