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

Tobi Bankole
2,901 PointsMy Solution - feedback welcome
Hi all, just completed this task after scratching my head for a bit. Anyway I could clean it up better or use fewer lines of code?
6 Answers

Dmitry Polyakov
4,989 PointsIt's working. Looks more correct

Dmitry Polyakov
4,989 PointsYour link doesn't work

Tobi Bankole
2,901 PointsSorry, I dont know whats going on tbh. The link works on my laptop, my PC and my phone

Dmitry Polyakov
4,989 PointsIt's says page doesn't exist. maybe it exists only locally on your computer

Tobi Bankole
2,901 PointsOk here goes part 2 - https://w.trhou.se/azo44y9wak

Dmitry Polyakov
4,989 PointsWhy did you put an argument inside Math.random()?
Math.random(number)????

Tobi Bankole
2,901 PointsI thought that was the correct syntax, am I horrifically incorrect? ^^;

Dmitry Polyakov
4,989 PointsNormally you don't put anything inside the parentheses in Math.random()

Tobi Bankole
2,901 PointsThank you for that does this look much better?

Dmitry Polyakov
4,989 PointsAs you proceed through the course you'll understand yourself how you can improve the same code.
Tobi Bankole
2,901 PointsTobi Bankole
2,901 PointsThank you so much for taking the time to put me straight!