underscore vs. hyphen
When choosing how to replace spaces in the name of files, variables and code in general, prefer the underscore character over a hyphen. The reason? The regular expression character class for a word boundary (/w) includes letters, numbers, and the underscore...but not the hyphen.
Written by Shawn Holmes
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#