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
Matthew Murray
8,488 PointsParsing Numbers from Strings
Hi, I've put what I believed to be correct code into the Parsing Numbers from Strings Challenge, but I keep getting an error message. I think it should be:
<script>
var boxWidth = "640px";
var boxHeight = "480px";
var numWidth = parsInt(boxWidth,10);
</script>
But I keep getting an error message. I've tried several other variants, but this is the one that makes the most sense to me. Could someone tell me where the error is? I tried it on several browsers without any luck.Thanks!
2 Answers
Kevin O'Donoghue
8,995 PointsHey Man, you're doing it right, except you misspelt ParseInt :) (its got an E in it)
Matthew Murray
8,488 PointsOh jeez - thanks!