Wednesday, May 17, 2017

Function with arguments and return value in HTML using java script

<html>
<head>
<script language= "javascript"type="text/javascript">
function product(a,b)
{
return a*b
}
</script>
</head>
<body>
<script language= "javascript"type="text/javascript">
document.write(product(4,3))
</script>
</body>
</html>

No comments:

Post a Comment