Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what is the difference between let and const in javascript

The difference is that with const you can only only assign a value to a variable
once, but with let it allows you to reassign after it has been assigned.
 
PREVIOUS NEXT
Tagged: #difference #const #javascript
ADD COMMENT
Topic
Name
6+5 =