Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

let javascript

* Variables defined with let cannot be redeclared.
* You cannot accidentally redeclare a variable.

let x = "John Doe";

let x = 0;

// SyntaxError: 'x' has already been declared
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
5+4 =