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