Difference Between Function Expression and Function Declaration
What is a Function Declaration?
According to the MDN docs, "the function declaration (function statement) defines a function with the specified parameters".
function addNums(a, b) {
return a + b;
}
console.log(addNums(5, 6)); //11
What is...
ayatakamura.hashnode.dev1 min read