Created
May 15, 2023 17:01
-
-
Save suhailgupta03/0e0434e466b97e19dc44ebe1e6e7c612 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function sum(x, y) { | |
| var z = x + y; | |
| return z; // return back the value of | |
| // z | |
| } | |
| var zz = sum(5 , 6); | |
| // sum(5 , 6) evaluates to 11 | |
| // sum(10, 20) evaluates to 30 | |
| console.log(zz); | |
| zz = sum(10, 20); | |
| console.log(zz); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment