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
Peter O'Brien
9,348 PointsParsing Numbers Challenge not working
Hello, I've defined the following but despite the Preview showing the correct value, I get an error stating I need to set the script up correctly, which I have done. Bummer! Sorry! That's not correct. A correct answer will use the form: var numVariable = parseInt(stringVariable, radix); <script> var boxWidth = "640px"; var boxHeight = "480px";
var numWidth = parseInt("640px", 10);
</script>
1 Answer
Peter O'Brien
9,348 PointsApologies. Its working. I called the variable name and it worked a charm... doh! :-)