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

dont understand octal number

create a variable and pass it to a octal literal 16.

2 Answers

What you wrote isn't exactly what the challenge says. It say: Create a variable named "mevol" and assign the value 16 to it using an octal number literal.

Octal literals start with 0, so if you wanted to assign the value 8 (decimal) using an octal literal, you'd write:

var myVal = 010; // because 8 in the octal system is 10

So, with this example, assigning the code challenge value shouldn't be a problem. Edit: If you really don't understand the octal system, you can easily find converters from decimal to octal via Google.

Kelvin Knighton
Kelvin Knighton
6,168 Points

i pass the challenge thanks to you, but i still don't get the placing of the numbers!! ughh i am trying.