Function-1

 

JavaScript multiplication function is used to multiply 2 variable in the below example. 

function multiplication(a, b) { return a * b; }

How to call JavaScript function?

multiplication(4, 3) will result to 12.

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <p id="sample"></p> <script> function multiplication(a, b) { return a * b; } document.getElementById("sample").innerHTML = multiplication(4, 3); </script> </body> </html>
Output