-
Notifications
You must be signed in to change notification settings - Fork 33
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
Consider using single quotes ' in JavaScript instead of double quotes " #45
Comments
I thought the same thing and would prefer single quotes. When going through the tutorial I was using single quotes instead. |
@erikeckhardt In regards to all of your comments/issues, I really appreciate the time and effort you put into creating them. It's great to see that there's community engagement around the site and that there are people out there who want to help make it better. I'm going to close this issue because it brings little to no benefit to the end user while having a number of drawbacks:
|
Consider using single quotes consistently in JavaScript, because this makes it much easier, as a matter of habit, to include Html that uses double quotes. I understand that in general, especially when using something like angular that is in essence a templating mechanism, that we would usually not put html in strings in JavaScript. However, it does occur at times (and consider jQuery selectors such as
$('div[data-flag="true"]')
.I honestly don't know if this recommendation is truly a global one in the community, but I for one find JavaScript single quotes easier on the eyes, and enjoy the difference from the more "bulky" double quotes that are used in HTML.
The text was updated successfully, but these errors were encountered: