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 melakukanSesuatu(a, b) { | |
| var c = a + b; | |
| // nah, bagaimana agar konteks di luar melakukanSesuatu | |
| // dapat memperoleh nilai c? | |
| // kita gunakan `return` | |
| // sehingga konteks yang menjalankan `melakukanSesuatu` | |
| // akan memperoleh nilai `c` ini | |
| return c; | |
| } |