1
2
<html>
3
<body>
4
<h2>JavaScript Functions</h2>
5
<p>Pass by value</p>
6
<script>
7
function Passbyvalue(a, b,x) {
8
let z;
9
z = b;
10
b = a;
11
a = z;
12
document.write(a + "-" + b + "-" + x);
13
}
14
let a = 5;
15
let b = 10;
16
Passbyvalue(a, b,77);
17
</script>
18
</body>
19
</html>