xxxxxxxxxx
let val1 = 10;
let val2 = 5;
function addNum(num1, num2){
let total = num1 + num2;
return total;
}
let result1 = addNum(val1, val2)
let result2 = addNum(10, 2)
```
1. Memory Creation Phase: Here, In 1st cyle we will get
- val1 -> undefined
- val2 -> undefined
- addNum -> defination
- result1 -> undefined
- result2 -> undefined
2. Execution Phase:
- val1 <- 10
- val1 <- 5