Functions

Basic

function nameFunc(para1, para2) {
	return para1 + para2;
}
// returns sum of parameters

nameFunc(arg1, arg2);
// calling func

Arrow function

const funcName = (para1, para2) => {
	// multi lines of code
	return value;
}

const funcName = para => para * 2;

Anonymous function

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

// even more future ben say that no its not retarded your a retard for thinking
// its retarded, retard