Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 652ec79

Browse filesBrowse files
authored
Create variables
1 parent d085609 commit 652ec79
Copy full SHA for 652ec79

File tree

1 file changed

+12
-0
lines changed
Filter options

1 file changed

+12
-0
lines changed

‎variables

Copy file name to clipboard
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//[Variables]//
2+
var example = true;
3+
example = 'Israel'; // overwritten
4+
console.log(example); // console does this.
5+
6+
7+
const example = true;
8+
example = 'Israel'; // get error
9+
console.log(example); // SyntaxError
10+
// constants cannot be overwritten with values
11+
12+
//If we need to overwrite we use 'let'

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.