DEV Community

Cover image for JavaScript Function
aasif247
aasif247

Posted on

2 2

JavaScript Function

Function Declarations

function myFunction(a,b){
    return a*b;
} 
console.log(myFunction(3,4)); 

Enter fullscreen mode Exit fullscreen mode

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)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more