Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Foundations Numbers Creating Numbers: Part 2

Xavier Haniquaut
Xavier Haniquaut
9,089 Points

small bug / error : multiple declarations

It seems that we can not declare the 2 variables in the same time.

var GermanyGDP = 3.4E12, mevol = 020;

Is this a bug from the site or a coding error ?

1 Answer

Keith Kelly
Keith Kelly
21,326 Points

Technically it is neither. The coding challenges tend to be very controlled in order to test comprehension. While you can declare variable the way you have, the challenge is probably looking for each variable to be declared separately.