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 trialAntoine Evanson
5,677 PointsGreetings community, I am unable to access JavaScript from my phone. Is their another way to complete the assignment?
const width = '190px';
const totalImages = 10;
const totalWidth = width* parseInt(totalImages);
1 Answer
Jason Larson
8,361 PointsI'm not sure about accessing JavaScript from your phone, but the issue with your solution is that you are using parseInt on the wrong variable. Images is already an int (you can tell because it doesn't have quotes around it). Try it with the parseInt on the width variable.
By the way, what type of phone do you have, so someone might be able to help you with that issue?
Antoine Evanson
5,677 PointsAntoine Evanson
5,677 PointsI apologize for the untimely response, I have an Iphone 11. I was able to pass to the next slide after switching the parseInt to different variable. Thank you for your response, Jason.