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

let vs const #7

Open
astroash opened this issue May 3, 2018 · 1 comment
Open

let vs const #7

astroash opened this issue May 3, 2018 · 1 comment

Comments

@astroash
Copy link

astroash commented May 3, 2018

let sql ={
text:'SELECT id, username FROM users WHERE username = $1 AND password = $2',
values:[username,password]
};

Remember to use const for values that are not reassigned.

@MohammedYehia
Copy link
Contributor

MohammedYehia commented May 3, 2018

It was just for testing because now I am having two sql statements with if condition so I think we can't use const
Thanks :)

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

2 participants