<html>
<head>
<title>Function with Parameters</title>
</head>
<body>
<h1>Passing arguments to the function</h1>
<script language="JavaScript">
function sum(a,b,c)
{
let total=a+b+c;
document.write("the sum is ="+total);
}
document.write("the sum is calculated by passing arguments to function<BR/>");
sum(2,7,8);
</script>
</body>
</html>