small medium large xlarge

19 May 2016, 22:14
Venkat Subramaniam (99 posts)

The following question was posted on errata and I’m moving it here to the forum:

“util_test.js is written as util-test.js. Am new to serverside JS and have seen filenames as p1-p2.js a lot. Is there a standard?”

Both _ and - are used, but dash is used by many popular libraries and frameworks. Angular 2 also recommends using dash to separate multiword names.


You must be logged in to comment