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 trialSharad pareek
Courses Plus Student 681 PointsWhich of these is an example of an integer?
Which of these is an example of an integer? :--- 0.000009 :--- 0.09 :--- -0.00009 :--- all of above
2 Answers
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,350 PointsNothing with a decimal point is an integer. An example of an integer is -112345 and 127.
charricefx
7,114 PointsI see what you did there... Well, none would not be integers unless you include parseInt and the result would be zero or negative zero. Any number after the decimal is ignore.