Answers for "what is let and const in javascript"

5

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.
Posted by: Guest on June-29-2020
-1

what is the different between var and let and const in js

var tester = "hey hi";
    
    function newFunction() {
        var hello = "hello";
    }
    console.log(hello); // error: hell
o is not defined
Posted by: Guest on July-30-2021

Code answers related to "what is let and const in javascript"

Browse Popular Code Answers by Language