JavaScript Functions

Call a function which performs a calculation and returns the result:

Function takes two values passed as arguments, Muliplies the values and returns the result

let x = myFunction(4, 3);


document.getElementById("demo").innerHTML = x; function myFunction(a, b) { return a * b;