Course Banner


Function with return type

In this kind of function , function returns the output after processing the task.
Example :
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
function multiply(a,b)
{
return a*b;
}
document.getElementById("demo").innerHTML=multiply(4,3);
</script>
</body>
</html>