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
Pirvan Marian
14,609 PointsFor execute whithout space
for ( var counter= 10 ; counter ;counter= counter-1){ console.log("nameone",counter,".name") } When i execute this the script will show me : nameone 1 name nameone 2 name nameone 3 name nameone 4 name nameone 5 name nameone 6 name nameone 7 name nameone 8 name , how can i make to show like : nameone1name nameone2name nameone3name nameone4name ? Whith out space, thanks!
1 Answer
Russell Wood
12,088 PointsUse concatenation: console.log("nameone" + counter + "name")