Javascript examples for Function:Function Return
Return the product of a and b from a function
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> function myFunction(a, b) { return a * b; } document.getElementById("demo").innerHTML = myFunction(4, 3); </script>/*from ww w . j a v a 2 s . c om*/ </body> </html>