JavaScript code using Functions

JavaScript code using Functions 

<html>
 <body>
  <script>
   function increment1(x) {
    return x + 1 ;
   }
   document.writeln(increment1(10)) ;
   document.writeln("<br />") ;
   var increment2 = function(x) {
    return x + 1 ;
   } ;
   document.writeln(increment2(10)) ;
  </script>
 </body>
</html>

Comments

Popular posts from this blog

Artificial Intelligence

The taxonomy of CASE Tools

Zoho Second round - adding a digit to all the digits of a number