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
| const variable = "value" | |
| console.log(variable); //value | |
| variable = "new value"; // This line will give an error "Uncaught TypeError: Assignment to constant variable" |
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 variable = "value"; | |
| console.log(variable) // value | |
| let variable = "value"; // value |
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
| // "Mangos", is a value. if you want to see this on a console. | |
| console.log("Mangos"); // Mangos | |
| console.log(23); // and here 23 is a value. | |
| let firstName = "Bennison"; | |
| console.log(firstName); // Bennison |
NewerOlder