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 trialPratik Rai
6,856 PointsI have a simpler approach: var question = prompt('is this also correct?').toLowerCase();
isn't it simpler or am I wrong?
1 Answer
Marcus Parsons
15,719 PointsHey Pratik,
It really depends on if you want to preserve the original formatting of the input received. In other words, let's say someone put in a name i.e. "Maya Angelou", you might not want to convert it to lower case, because it wouldn't look like a name anymore. You would probably just want to test that it is equal to the lower case version of "Maya Angelou". It all depends on how you're using the data, though, Pratik!