Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Gulp Basics Gulp your JavaScript Workflow Using Third Party Gulp Libraries

Single vs double quotes.

Can you clear up for me when you decide to use double quotes vs. single quotes as you seem to use both in the gulpfile.js file? Thanks.

2 Answers

Brian Douglas
Brian Douglas
822 Points

In Javascript you can use both.

However JSLint, the main Javascript Linter, recommends using single quotes by default.

See more here https://jslinterrors.com/mixed-double-and-single-quotes

Thanks Brian I had actually noticed that as I'm using JSHint in Sublime Text. I was just wondering why the teacher is mixing using both in the gulp file, surely he must have a reason for this?