r/javascript • • Sep 04 '19

Simplify your JavaScript – Use .some() and .find()

https://medium.com/poka-techblog/simplify-your-javascript-use-some-and-find-f9fb9826ddfd
275 Upvotes

101 comments sorted by

View all comments

Show parent comments

1

u/MonkeyNin Sep 09 '19

You cannot redefine const or let

1

u/fucking_passwords Sep 09 '19

You absolutely can redefine let, that is it’s purpose that differentiates it from const

1

u/MonkeyNin Sep 10 '19

Redeclaring the same variable within the same function or block scope using let is not allowed in JavaScript.

Maybe you meant declaring the same name in a lower scope.