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 trialGregory Serfaty
37,140 PointsConvert int to string
Hi For the challenge we need to convert the courseID in string, i try to cast it, to put quote but nothing match, i have always the message " You need to convert the courseID variable to a string and use it when creating courseURL."
Some one have an idea?
Thx.
2 Answers
R J
1,779 PointsTry this
String(CourseID)
Add
Let x = String(CourseID)
then substitute x in the code
Gregory Serfaty
37,140 PointsReally weird i do that after my post and now it is work so good Thx
R J
1,779 PointsKeep in mind that the String in String(CourseID) is case sensitive
so string(CourseID) doesn't work
the first s in String must be upper case
Robert Bojor
Courses Plus Student 29,439 PointsRobert Bojor
Courses Plus Student 29,439 PointsHave you tried doing it like "\(courseID)" ?