Friday, October 17, 2014

Write A User Define Function with no argument and with return value using javascript


Write A User Define Function with no argument and with return value using javascript.
Code : udfpv.html
<html>
<head>
<script type="text/javascript">
function sub(a,b)
{
document.write(a-b);
}
sub(50,30);
</script>
</head>
<body>
</body>
</html>

No comments: