How to create the function in javascript

Use the below code to create functionHow to create the function in javascript

function myFunction(p1, p2) {
  return p1 * p2;
}

If you want to call the function and show the value in the custom div you need to pass the value of parameters p1 and p2

document.getElementById("custom_div").innerHTML = myFunction(4, 3);

// result: 12
How to create the function in javascriptexpoundsofttechsolution What is GMT?