A function with arguments, that returns a value : Function : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Function »

 

A function with arguments, that returns a value





<html>
<head>

<script type="text/javascript">
function total(a,b){
    return a + b
}
</script>

</head>
<body>

<script type="text/javascript">
    document.write(total(2,3))
</script>


</body>
</html>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Function