Prev Next

Web / ES6 Interview questions

Explain let and const keywords.

The variables declared using let keyword will be mutable and the values can be changed at anytime. It is similar to var keyword except that it provides block scoping.

The variables declared using the const keyword are immutable and block-scoped. The value of the variables cannot be changed or re-assigned.

More Related questions...

Show more question and Answers...


Comments & Discussions