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
Mason Barton
Full Stack JavaScript Techdegree Student 5,656 Pointsat 3:24, why did he add parseInt?
I think im still having trouble understanding parseInt and parseFloat and the effects they have on coding
1 Answer
jonathon bujosa
4,056 PointsparseInt is used to convert a non integer number to an integer. If you were getting input from a user as a string the parseInt takes that string and converts the number from a string to an integer that can be used to perform calculations.
Eric Butler
33,512 PointsEric Butler
33,512 PointsHey Mason, if you add what video you're watching (what URL you're on), it will help those of us in the general Community Forum part of the site try to help you. Right now there's no reference to what video you're watching. Cheers!