Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

const vs let #115

Open
jackherizsmith opened this issue Dec 6, 2022 · 0 comments
Open

const vs let #115

jackherizsmith opened this issue Dec 6, 2022 · 0 comments

Comments

@jackherizsmith
Copy link

jackherizsmith commented Dec 6, 2022

I would basically recommend that you always use const, with let really only when you need it. I think most instances I've seen where you're using let, you could be using const.

It's particularly helpful to know that a variable isn't changing over the course of its lifetime 💁‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant