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

JavaScript JavaScript Foundations Numbers Creating Numbers: Part 2

octal 16.......................??..................... nvm got it.

how do u make octal 16 if u add 8 to 010 and 8 isnt a number so wouldnt it be 0110? he didnt explain it at all and im about to throw my laptop

9 Answers

Think about it like this. In octal numbers, 8 is like 10. Once you've added that "1" to the "10's" column, you start back with one in the "1's" column. Until you get to the 8, in which case you add another to the "10's" column.

So, if 8 is 010 in octal, 16 is 020.

001 002 003 004 005 006 007 010 011 012 013 014 015 016 017 020 021 ...

No need to throw your laptop, doubt this is important in the whole scheme of things :)

most of this isnt in the grand scheme of things it seems like lol. why do i need to hoist, octal and get the length of words in order to make a website? lol im at a loss here.................

I guess it depends what kind of website you want to build. You don't need JS to build a website, but you might need it to build an interesting website with functionality.

well im getting paid to learn how to make a web site to make for this business so i guess it would be an ecommerce website? im teaching myself how to make websites but its not going so well lol.... the only interactivity i have seen is prompting and alerting..

If you are actually selling things on the website (placing orders, taking money, etc) then yes its an e-commerce site and you may very well need javascript (or a CMS).

If its just an informational website, then I'd say no. And you probably wouldn't need javascript.

wont i need to learn php and mysql too or are there any ecommerce sites that let you apply your own html site?

I'm not an expert at this, but you can use a CMS without knowing PHP/mySQL, as long as there is a plug-in extension that does what you need. I personally would rather just know how to create my own extensions.

where can u learn cms?

WordPress is a CMS, and you can learn about that here. There are other CMS's (Joomla and Drupal for instance), but I'm not sure how much of those are on Treehouse.