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 trialJennifer Wong
1,622 PointsAren't you able to add more than one variable in a double quoted string?
In regards to 5:18, the video states that you should use double quotes to add a single variable to a string, but aren't you technically able to add more than one variable to a double quoted string?
1 Answer
Eric Butler
33,512 PointsYes, you can add as many variables into a double-quoted string as you want.
echo "$firstVar is a $secondVar, but also $thirdVar.";
would output fine.