2. Your host - Thinkful
Thinkful is an online coding bootcamp for Web
Development and Data Science. What sets us apart from
the others is our support; 1x1 mentorship, live instruction,
and, of course, our JOB-PLACEMENT GUARANTEEJOB-PLACEMENT GUARANTEE.
2
4. About you
What's your name?
What brought you here today?
What is your programming experience?
4
5. Suggestions for learning
Don't get discouraged, struggle leads to masterystruggle leads to mastery
Don't be shy, take full advantage of our supporttake full advantage of our support
5
6. Agenda
Learn key JavaScript concepts (20 min)
Go over assignments (10 min)
Complete assignments with our support! (30 min)
Go over answer key (10 min)
Steps to continue learning (10 min)
6
7. How the web works
Type a URL from a client (e.g. google.com)
Browser sends an HTTP request asking for specific files
Browser receives those files and renders them as a website
7
9. Example: facebook.com
Client Server
Open browser
and navigate to
facebook.com
HTML, CSS, &
JavaScript render
newsfeed
Request
Response
Algorithm
determines
content of feed.
Sends back
HTML, CSS,
JavaScript files
Application LogicApplication Logic
Initial requestInitial request
Following responseFollowing response
9
10. Example: facebook.com
Client Server
Open browser
and navigate to
facebook.com
HTML, CSS, &
JavaScript render
newsfeed
Request
Response
Algorithm
determines
content of feed.
Sends back
HTML, CSS,
JavaScript files
Application LogicApplication Logic
Initial requestInitial request
Following responseFollowing response
We'll be writing JavaScript, the code
that the browser uses to run the app
10
11. History of JavaScript
Written by Brendan Eich in 1995 for Netscape
Initial version written in 10 days
Completely unrelated to Java, but may be named after it to
draft off its popularity
Over 10 years, became default programming language for
browsers
11
12. Defining a variable with JavaScript
var numberOfSheep = 20
Initialize variable
Name of variable
Value of variable
12