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 trialAnurag Sen
472 PointsIt's a bit confusing to me.. any one please help ??
how to change bool to var ?
var input = '22';
var converted = int.Parse(input);
var wheelsAreRound = true;
var downcased = "DoNuTs".ToLower();
var success = (downcased == "donuts");
var total = 0.0;
3 Answers
Steven Parker
231,210 PointsIt's not your bool, that's fine. But why did you change the quotes on the top line to apostrophes? Did you notice how the syntax coloring above no longer shows the "22" in pink like the other strings?
Just put the original quotes back around "22".
Anurag Sen
472 PointsI tried with both... First "22" and then after I changed it to '22'. . And i'm getting an error near : var wheelsAreRound = true; ???
Audrey Steed
1,112 PointsJust restart the challenge.I just completed it with YOU'R code but with the double quotes.