Function that returns a value : Function : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Function »

 

Function that returns a value



<html>
<head>

<script type="text/javascript">
function myFunction(){
    return ("Hello!")
}
</script>

</head>
<body>

<script type="text/javascript">
    document.write("return from function")
    document.write(myFunction())
</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