2 ms·
`let foo = "bar"` makes foo a string `const foo = "bar"` makes foo a constant string "bar" Where are you having the redundancy? I can think of one place that
by Dylan16807 3y ago
`let foo = "bar"` makes foo a string
`const foo = "bar"` makes foo a constant string "bar"
Where are you having the redundancy?
I can think of one place that causes me problems, which is typing and destructuring at the same time in function parameters. But there's no type redundancy there, the redundancy is having to write variable names twice.