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 trialChris Mitchell
3,011 Pointswhat am i doing wrong in my code
can someone please help me
var width = '190px';
var numOfDivs = 10;
var num = parseInt(1,900);
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Basics</title>
</head>
<body>
<script src="app.js"></script>
</body>
</html>
1 Answer
Steven Parker
231,275 PointsHere's some hints:
- you won't need any numbers in the code you add, since they have been assigned to variables
- in your code, you will work with the variables by name
- you have the right idea to use parseInt, but you need to use it on the correct variable (name)
- parseInt takes only one argument
- you may want to do a math operation using the result of the parseInt and the other variable
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherI'd also point out one additional hint: your variable is misnamed. Check the instructions for what they want the variable to be named