Function with argument and return result
<!DOCTYPE html>
<html>
<body>
<p>Calling a function which calculate and returns the result : </p>
<p id="demo"> </p>
<script>
function Function(a, b)
{
return a * b;
}
document.getElementById("demo").innerHTML = Function(5 , 10);
</script>
</body>
</html>