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 trialJordan Hayes
Courses Plus Student 612 PointsConfused I thought I was supposed to concatenate the string values.
I was asked to create a javascript string
so i put
var message = 'Java ' + ' Script'
1 Answer
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 PointsIt looks like you have added a space within both Java string and Script string, remove that space.
Simply do this-
message = 'Java' + 'Script' // You have written 'Java' as 'Java ' and 'Script' as ' Script'
See in the question, you have to create JavaScript
not Java Script
Hope it helps :)