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 trialhector alvarado
15,796 PointsIs using Float a better option??
I think I cheated because used floats, and just remove the float. Is this approach wrong??
1 Answer
Steven Parker
231,248 PointsThere are often multiple ways to achieve the same result, and using "float" might make things look the way you want.
But floats are not part of the technique being taught here. I'm not sure I'd call that "cheating", but you're not getting the benefit of the lesson.
Floats can have unwanted side-effects, so it's good to know other techniques that can be employed as an alternative.
Sean Powers
3,926 PointsSean Powers
3,926 PointsI did the same thing. You're still solving the problem, even if it isn't accounting for the context of the lesson or long-term design implications.