Function Declarations
function myFunction(a,b){
return a*b;
}
console.log(myFunction(3,4));
function myFunction(a,b){
return a*b;
}
Here this portion is a declaration that's why don't use any semi colon(;)
console.log(myFunction(3,4));
This portion is function execution ( an statement) , that's why we are using semi colon(;)
Top comments (0)