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
Alexander Tuazon
Courses Plus Student 3,047 PointsStuck! Need Help!
I've been working on this for hours and can't find the answer. I need help on this question:
Declare 2 separate variables of type char named "alpha" and "bravo". Assign the letter 'a' to the variable "alpha" and the letter 'b' to "bravo".
Thank you!
Mike Bronner
16,395 PointsAlso, please post the code you are using that is failing.
6 Answers
Alexander Tuazon
Courses Plus Student 3,047 PointsHow do you link it?
Mike Bronner
16,395 PointsWhen you are in the Challenge, copy the URL from your browser and paste it here.
Alexander Tuazon
Courses Plus Student 3,047 PointsMike Bronner
16,395 PointsOK, thanks. Now please post your code that isn't working. I tried it based on the advise in the other post, and it worked. There is probably a typo or something small that is missing in your code.
Stephen DelBuono
11,264 PointsHey Mike have you finished Building an interactive website? If so can you help me with http://codepen.io/AcesUp/pen/spnrl
thanks!
Mike Bronner
16,395 PointsHi Stephen, I'll be glad to help. Please start a new post with a description of the problem you are having, the link to your code, and a link to the challenge, if it pertains to a challenge.'
Thanks!
Stephen DelBuono
11,264 PointsHi Mike, thanks for your response. Here is the link https://teamtreehouse.com/forum/googlemapseventaddlistener-with-marker-click-and-an-anonymous-function-33
Mike Bronner
16,395 PointsYou REALLY need to create a new post for this.
Gregg Mojica
11,506 PointsStephen, please create a new discussion! We'd be happy to help you!
Alexander Tuazon
Courses Plus Student 3,047 PointsWhat did you type to get it right?
Mike Bronner
16,395 PointsGiving the answer straight-away would defeat the purpose of learning. It's best to see what you're doing wrong first, and then understand what you need to do to get it right. Have you re-watched the video before the challenge?
Mike Bronner
16,395 PointsIt often helps to watch a video multiple times if you're stuck at the challenge to see exactly where you are going wrong.
Alexander Tuazon
Courses Plus Student 3,047 PointsYes. This is what I put: char alpha = 'a'; char bravo = 'b'; char letters[2]; letters[0] = alpha; letters[1] = bravo;
Mike Bronner
16,395 PointsOK, we can work with that.
You are declaring the alpha and bravo variables correctly. Why did you add the additional code? It didn't ask for that -- assuming you are on task 1 of the challenge (which your original post shows you are at). If you're still on task one, remove the extra code, and see if it likes it then.
Alexander Tuazon
Courses Plus Student 3,047 PointsIt works thanks!
Mike Bronner
16,395 PointsExcellent, Alexander! The challenge engine is very specific in what it expects each time you hit submit, so even though the code you had there wasn't wrong, it wasn't expecting it, so it failed your task.
Alexander Tuazon
Courses Plus Student 3,047 Points''' char alpha = 'a'; char bravo = 'b'; char letters[2]; letters[0] = alpha; letters[1] = bravo;
'''
Alexander Tuazon
Courses Plus Student 3,047 Points'''javascript char alpha = 'a'; char bravo = 'b'; char letters[2]; letters[0] = alpha; letters[1] = bravo; '''
Mike Bronner
16,395 PointsMike Bronner
16,395 PointsPlease post a link to the challenge. Also, it's not a good idea to post two different threads on the same topic. Better to continue the conversation in the original thread.