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
| let call_name = 'shine'; | |
| let mention = `Una go hala my name one day ${call_name}`; | |
| alert( mention); | |
| let name = "John"; | |
| // embed a variable | |
| alert( `Hello, ${name}!` ); // Hello, John! |
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 pow(x,n){ | |
| let ans = 1; | |
| for(let i = 0; n > i; i++){ | |
| ans = ans*x; | |
| } | |
| return ans; | |
| } | |
| pow(5,2); |