1
2
<html>
3
<head>
4
<title>Function Parameters JavaScript</title>
5
</head>
6
<body>
7
<h1>Function Parameters JavaScript</h1>
8
<script>
9
//decleare function with 2 pramaters a,b
10
function sum(a, b) {
11
//Summation a,b and store result in total variable
12
let total = a + b
13
//print total in html
14
document.write(total + "<br>");
15
}
16
//every call with different value
17
sum(5,10);
18
sum(99,1);
19
</script>
20
</body>
21
</html>