Edit This Code:
See Result »
<
!DOCTYPE
html
>
<
html
>
<
body
>
<
p
id
="demo"
>
<
/p
>
<
script
>
var
myFunction =
function
(a, b) {
return
a * b}
document.getElementById(
"demo"
).innerHTML = myFunction(
4
,
3
);
<
/script
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var myFunction = function (a, b) {return a * b} document.getElementById("demo").innerHTML = myFunction(4, 3); </script> </body> </html>
Result:
Privacy Policy