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 trialjoe osorio
Courses Plus Student 642 Pointsdont understand octal number
create a variable and pass it to a octal literal 16.
2 Answers
Dino Paškvan
Courses Plus Student 44,108 PointsWhat 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
6,168 Pointsi pass the challenge thanks to you, but i still don't get the placing of the numbers!! ughh i am trying.