Welcome to the Treehouse Community
Looking to learn something new?
parseInt not working what am i doing wrong?
var boxWidth = "640px"; var boxHeight = "480px";
var numWidth = parseInt("boxWidth" "10");
Richard Duncan5,568 Points
You have " wrapping your variable name, so parseInt is literally being called on a string with the value of "boxWidth" rather than the variable boxwidth that contains the string value "640px".
Also, you need a comma separating your arguments e.g.
OK Thanks that worked
Done thanks a lot Richard.