says, regarding let:
" when you use
let , a variable with the same name can only be declared once." My understanding from other sites is that this is actually the behavior of const, and let is the more flexible of the two. Am I wrong, or is the lesson?
The next lesson says, of const " variables declared using
const are read-only. They are a constant value, which means that once a variable is assigned with
const , it cannot be reassigned".
Are these two statements not equivalent?