The next section of the Odin Project is an introduction to javascript. However, on the Treehouse Front End Web Development track, the next course is "Introduction to Programming." Now, still in Treehouse, right after that course, comes "Javascript Foundations." So, because of that, I think now would be a good time to get "Introduction to Programming" knocked out, that way I can get that out of the way and get started on Javascript on Treehouse at the same time that I do so on The Odin Project.
I started the "Introduction to Programming" course, and the programming language for the course is javascript, so it looks like I'm diving right into javascript. Javascript is the language of the web browser. TO access the Javascript console on the Chrome web browser, we can go to View, Developer, Javascript Console, or by pressing Command, Option, J. REPL stands for Read, Evaluate, Print, Loop. To multiply in the Javascript Console, we use the * key, so 9*2 would result in an output of 18. For text in javascript, we should wrap the text up in quotes (either double or single) to create a string. When we insert a plus sign between two strings, javascript will join, or concatenate the strings together, so "Hello" + "World" would result in an output of "HelloWorld" in the console.
We used the alert(12) function to make a small popup appear on the screen with the number 12 in it. The command alert(12) does not return or evaluate to anything, so it shows "undefined" in the console. Alert is the function, and we are executing the function by entering parentheses with a value inside. We used the prompt function, followed by parentheses with a string inside, to make the browser pop up a small window with a text box inside for the user to input information into. We can also combine the prompt and alert functions to create sequentially appearing pop up boxes.
In order to add javascript to a website, we should first create the usual index.html site, and once that's created, in a folder near to it, we should create a file with a .js extension. The name of the file does not matter, as long as the extension is .js.
The great thing is I actually feel pretty comfortable with HTML and CSS now. I'm looking forward to the day I can say the same about javascript, jquery, ruby, and ruby on rails. It's just a matter of putting in the time and soon I'll be able to say I'm a web developer!
SUMMARY OF CODING SKILLS
Total Treehouse Points: 4,236
Treehouse Points by Subject Matter: HTML 663, CSS 1,599, Design 1,193, Development Tools 747, and Miscellaneous
Treehouse Ranking (%): "You have more total points than 88% of all students."
Treehouse Badge(s) Earned Today:
Treehouse Courses Completed:
How to Make a Website
HTML
CSS Foundations
CSS Layout Techniques
Aesthetic Foundations
Design Foundations
Adobe Photoshop Foundations
Adobe Illustrator Foundations (66% complete, but switched focus to web dev, as opposed to web design)
Git Basics
Codecademy (& other) Courses Completed:
HTML and CSS (Codecademy)
Design Foundations
Adobe Photoshop Foundations
Adobe Illustrator Foundations (66% complete, but switched focus to web dev, as opposed to web design)
Git Basics
Codecademy (& other) Courses Completed:
HTML and CSS (Codecademy)
Books Read or in Progress:
Completed: "Head First HTML and CSS," by E. Robson & E. Freeman (37 pg preface and 710 pgs of actual content (as in, I'm not including the book's index))
My Progress on The Odin Project:
1. Introduction to Web Development 100% Complete
2. Web Development 101 29% Complete
3. Ruby Programming 0% Complete
4. Ruby on Rails 0% Complete
5. HTML5 and CSS3 0% Complete
6. Javascript and JQuery 0% Complete
7. Getting Hired as a Web Developer 0% Complete
Hours Spent Coding Today: 2
Total Hours Coding: 302
Total Hours Coding: 302