1. Intro to JavaScript: FundamentalsIntro to JavaScript: Fundamentals
March 2018
bit.lybit.ly/phx-intro-js/phx-intro-js
1
2. About us
Jessica Cottrell, Instructor
Web Developer, We Are Underground
Thinkful Student
Shari Hobbs, TA
Thinkful Student
Shannon Gallagher
Thinkful Community Manager
Thinkful Student
2
3. About you
What's your name?
What brought you here today?
What is your programming experience?
3
4. About Thinkful
We train developers and data scientists through
1x1 mentorship and project-based learning.
Guaranteed.
4
5. Agenda
Learn key Javascript concepts
Go over assignments
Complete assignments with our support!
Go over answer key
5
6. 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
6
8. 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 Logic
Initial request
Following response
8
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 Logic
Initial request
Following response
We'll be writing JavaScript, the code
that the browser uses to run the app
9
10. Defining a variable with JavaScript
var numberOfSheep = 20var numberOfSheep = 20
Initialize variable
Name of variable
Value of variable
10
13. Declaring a function with JavaScript
function greet() {function greet() {
return "Hello world!"; return "Hello world!";
}}
Initialize function Name of function
What the function does
13
19. Parameters within functions
function adder(a, b) {function adder(a, b) {
return a + b; return a + b;
}}
adder(1,2);adder(1,2);
Parameters in declaration
Parameters used
within the function
19
24. Thinkful's free course
75+ hours of curriculum for two weeks
HTML, CSS and JavaScript
Unlimited mentor-led Q&A sessions
Personal Program Manager
bit.ly/freetrial-webdevbit.ly/freetrial-webdev
Thinkful Coding Prep Course
$1500 FREE
24