What is the difference between let, const, and var?
Answer Posted / glibwaresoftsolutions
Keyword Scope Can be reassigned? Hoisted?
var Function-scoped Yes Yes (initialized as undefined)
let Block-scoped Yes No
const Block-scoped No No
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is javascript necessary for web development?
What are the different types of errors in javascript?
What is strict mode in javascript?
What is asynchronous javascript?
What is the naming conventions for the variables in javascript?
Can I open javascript on iphone?
Why extending array is bad idea?
How to use one javascript function for multiple input fields?
What are global variables in javascript?
What is the difference between typeof and instanceof operators in Javascript?
Should I disable javascript?
Is there an alternative to javascript?
Create a new javascript object with the keys of “fname” equal to your first name, “lname” equal to your last name, and “fcolors” equal to and array of 3 of your favorite colors. Assign this object to a variable called “me” and log it to the console.
Is javascript safe to download?
Define unescape() and escape() functions?