<!DOCTYPE html>
<html lang="en-US">
<body>
<p>In call by value, any changes made to formal parameter (a, b) will not affect the actual parameter (num, str)</p>
<p id="point"></p>
<script>
var x = document.getElementById("point");
var num = 25;
var str = "Hello";
function myFunction(a, b){
a = 6;
b = "Bye";
}
myFunction(num, str);
x.innerHTML = "Num : "+ num + "<br>Str : " + str;
</script> </body>
</html>