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>
<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
Post a Comment