- Always use '===' instead of '==' for comparison
this.id
is better than$(this).attr('id')
- "use strict"
- Never leave out optional curly brackets, even for one-line statements.
- Get elements by id wherever possible
Last active
August 29, 2015 14:00
-
-
Save nickautomatic/9ec42a82e3624a059f6c to your computer and use it in GitHub Desktop.
Javascript style guide
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment