SlideShare a Scribd company logo
Intro to JavaScript: FundamentalsIntro to JavaScript: Fundamentals
April 2018
http://bit.ly/introjs-sdhttp://bit.ly/introjs-sd
Wi : Deskhub-main   PW: stake2017!
1
Instructor
Tanner Gill
Thinkful Graduate
React Native Developer
TA
bit.ly/introjs-sd
Amanda Pattridge 
Bootcamp Graduate
Application Developer at TechFlow, Inc
2
About you
What's your name? 
What brought you here today?
What is your programming experience?
bit.ly/introjs-sd
3
About Thinkful
We train developers and data scientists through
1x1 mentorship and project-based learning.
 
Guaranteed.
4
Agenda
Learn key Javascript concepts 
Go over assignments 
Complete assignments with our support! 
Go over answer key 
5
How the web works
Type a URL from a client (e.g. google.com)
Browser sends an HTTP request asking for speci c les
Browser receives those les and renders them as a website
bit.ly/introjs-sd
6
Client/Servers
Client (sends requests)
Frontend Developer
Manages what user sees
Server (sends response)
Backend Developer
Manages what app does
bit.ly/introjs-sd
7
Example: facebook.com
Client Server
Open browser
and navigate to
facebook.com
HTML, CSS, &
Javascrip render
newsfeed
Request
Response
Algorithm
determines
content of feed.
 
Sends back
HTML, CSS,
Javascript les
Application Logic
Initial request
Following response
bit.ly/introjs-sd
8
Example: facebook.com
Client Server
Open browser
and navigate to
facebook.com
HTML, CSS, &
Javascrip render
newsfeed
Request
Response
Algorithm
determines
content of feed.
 
Sends back
HTML, CSS,
Javascript les
Application Logic
Initial request
Following response
We'll be writing Javascript, the code
that the browser uses to run the app
9
bit.ly/introjs-sd
History of Javascript 
Written by Brendan Eich in 1995 for Netscape
Initial version written in 10 days
Completely unrelated to Java, but maybe named after it to
draft off its popularity
Over 10 years, became default programming language for
browsers
Continues to evolve under guidance of ECMA International,
with input from top tech companies 
bit.ly/introjs-sd
10
Javascript today
Has large community of developers, libraries and
frameworks 
Lots of job opportunities 
Also the syntax is easier to understand for rst-time
developers
bit.ly/introjs-sd
  11
De ning a variable with Javascript
var numberOfSheep = 20var numberOfSheep = 20
Initialize variable
Name of variable
Value of variable
bit.ly/introjs-sd
12
Variable examples
bit.ly/introjs-sd
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
bit.ly/introjs-sd
14
Function examples
bit.ly/tf-intro-js
15
If/Else Statements
go to gas stationkeep driving
if false if true
need gas?
family roadtrip
bit.ly/introjs-sd
16
If/Else Statements
function familyRoadtrip() {
    if (needGas == true) {
        getGas();
    }
    else {
        keepDriving();
    }
}
bit.ly/introjs-sd
17
Comparing Values
==    (equal to)
 
         5 == 5  --> true
         5 == 6  --> false
 
!=     (not equal to)
 
         5 != 5  --> false
         5 != 6  --> true
 
bit.ly/introjs-sd
18
If/Else Statements and Comparing Values
bit.ly/introjs-sd
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
bit.ly/introjs-sd
20
Examples of parameters within functions
bit.ly/introjs-sd
  21
Real developers use Google... a lot
bit.ly/introjs-sd
22
Repl.it setup & rst steps!
http://bit.ly/tf-intro-js-challenges
bit.ly/introjs-sd
23
Ways to keep learning
24
Thinkful's free course
HTML, CSS and JavaScript
Unlimited group mentor sessions
Personal Program Manager
Slack Channel
bit.ly/tfsd-wdbit.ly/tfsd-wd
Thinkful Coding Prep Course
25

More Related Content

PDF
Intro js3.22.18
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-52-74-451
PDF
Introjs1.9.18tf
PDF
Introjscb112817
PDF
Introjssd 11.8.17
PDF
Itjsf129
PDF
Itjsf13
PDF
tfIjspdx080717
Intro js3.22.18
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-52-74-451
Introjs1.9.18tf
Introjscb112817
Introjssd 11.8.17
Itjsf129
Itjsf13
tfIjspdx080717

What's hot (6)

PDF
Itjsf49
PDF
Intro to JavaScript
PDF
Thinkful DC - Intro to JavaScript
PPT
Codeigniter
PDF
An introduction to programming in Go
PPTX
Grzegorz Witek - MongoDB + RoR, Mongoid (PRUG 1.0)
Itjsf49
Intro to JavaScript
Thinkful DC - Intro to JavaScript
Codeigniter
An introduction to programming in Go
Grzegorz Witek - MongoDB + RoR, Mongoid (PRUG 1.0)
Ad

Similar to Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78 (12) (20)

PDF
Introjs2.13.18sd
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78-171-219-304-310-388 (1)
PDF
Itjsf13
PDF
Intro to JavaScript: FUNdamentals (3/7/18)
PDF
PDF
Itjs111
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-454
PDF
Itjs124
PDF
Ijsphx927
PDF
Intro js-nov-7
PDF
Intro to JavaScript
PDF
Intro js-la-12-18
PDF
Build a Game with JavaScript - Pasadena July
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-431 (1)
PDF
Intro to JavaScript - LA - July
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-52-74
PDF
IJS821
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55
PDF
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14
Introjs2.13.18sd
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78-171-219-304-310-388 (1)
Itjsf13
Intro to JavaScript: FUNdamentals (3/7/18)
Itjs111
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-454
Itjs124
Ijsphx927
Intro js-nov-7
Intro to JavaScript
Intro js-la-12-18
Build a Game with JavaScript - Pasadena July
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-431 (1)
Intro to JavaScript - LA - July
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-52-74
IJS821
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14
Ad

More from Jordan Zurowski (7)

PDF
Virtual pet4.12.18sd
PDF
Tfbyoweb.4.9.17
PDF
Tfbyoweb.4.9.17
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-173-252 (4)
PDF
Jsgame 3.1.18-sd
PDF
How to choose a programming language 2.20.18 sd
PDF
Gttech2.8.18
Virtual pet4.12.18sd
Tfbyoweb.4.9.17
Tfbyoweb.4.9.17
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-173-252 (4)
Jsgame 3.1.18-sd
How to choose a programming language 2.20.18 sd
Gttech2.8.18

Recently uploaded (20)

PPTX
Tartificialntelligence_presentation.pptx
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Approach and Philosophy of On baking technology
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Encapsulation theory and applications.pdf
PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
1. Introduction to Computer Programming.pptx
PDF
project resource management chapter-09.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Getting Started with Data Integration: FME Form 101
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Tartificialntelligence_presentation.pptx
Hindi spoken digit analysis for native and non-native speakers
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Approach and Philosophy of On baking technology
A novel scalable deep ensemble learning framework for big data classification...
Encapsulation theory and applications.pdf
WOOl fibre morphology and structure.pdf for textiles
Digital-Transformation-Roadmap-for-Companies.pptx
1. Introduction to Computer Programming.pptx
project resource management chapter-09.pdf
Programs and apps: productivity, graphics, security and other tools
Getting Started with Data Integration: FME Form 101
NewMind AI Weekly Chronicles - August'25-Week II
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
cloud_computing_Infrastucture_as_cloud_p
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
TLE Review Electricity (Electricity).pptx
Unlocking AI with Model Context Protocol (MCP)
A comparative study of natural language inference in Swahili using monolingua...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf

Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78 (12)

  • 1. Intro to JavaScript: FundamentalsIntro to JavaScript: Fundamentals April 2018 http://bit.ly/introjs-sdhttp://bit.ly/introjs-sd Wi : Deskhub-main   PW: stake2017! 1
  • 2. Instructor Tanner Gill Thinkful Graduate React Native Developer TA bit.ly/introjs-sd Amanda Pattridge  Bootcamp Graduate Application Developer at TechFlow, Inc 2
  • 3. About you What's your name?  What brought you here today? What is your programming experience? bit.ly/introjs-sd 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 speci c les Browser receives those les and renders them as a website bit.ly/introjs-sd 6
  • 7. Client/Servers Client (sends requests) Frontend Developer Manages what user sees Server (sends response) Backend Developer Manages what app does bit.ly/introjs-sd 7
  • 8. Example: facebook.com Client Server Open browser and navigate to facebook.com HTML, CSS, & Javascrip render newsfeed Request Response Algorithm determines content of feed.   Sends back HTML, CSS, Javascript les Application Logic Initial request Following response bit.ly/introjs-sd 8
  • 9. Example: facebook.com Client Server Open browser and navigate to facebook.com HTML, CSS, & Javascrip render newsfeed Request Response Algorithm determines content of feed.   Sends back HTML, CSS, Javascript les Application Logic Initial request Following response We'll be writing Javascript, the code that the browser uses to run the app 9 bit.ly/introjs-sd
  • 10. History of Javascript  Written by Brendan Eich in 1995 for Netscape Initial version written in 10 days Completely unrelated to Java, but maybe named after it to draft off its popularity Over 10 years, became default programming language for browsers Continues to evolve under guidance of ECMA International, with input from top tech companies  bit.ly/introjs-sd 10
  • 11. Javascript today Has large community of developers, libraries and frameworks  Lots of job opportunities  Also the syntax is easier to understand for rst-time developers bit.ly/introjs-sd   11
  • 12. De ning a variable with Javascript var numberOfSheep = 20var numberOfSheep = 20 Initialize variable Name of variable Value of variable bit.ly/introjs-sd 12
  • 14. Declaring a function with Javascript function greet() {function greet() {    return "Hello world!";   return "Hello world!"; }} Initialize function Name of function What the function does bit.ly/introjs-sd 14
  • 16. If/Else Statements go to gas stationkeep driving if false if true need gas? family roadtrip bit.ly/introjs-sd 16
  • 17. If/Else Statements function familyRoadtrip() {     if (needGas == true) {         getGas();     }     else {         keepDriving();     } } bit.ly/introjs-sd 17
  • 18. Comparing Values ==    (equal to)            5 == 5  --> true          5 == 6  --> false   !=     (not equal to)            5 != 5  --> false          5 != 6  --> true   bit.ly/introjs-sd 18
  • 19. If/Else Statements and Comparing Values bit.ly/introjs-sd 19
  • 20. 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 bit.ly/introjs-sd 20
  • 21. Examples of parameters within functions bit.ly/introjs-sd   21
  • 22. Real developers use Google... a lot bit.ly/introjs-sd 22
  • 23. Repl.it setup & rst steps! http://bit.ly/tf-intro-js-challenges bit.ly/introjs-sd 23
  • 24. Ways to keep learning 24
  • 25. Thinkful's free course HTML, CSS and JavaScript Unlimited group mentor sessions Personal Program Manager Slack Channel bit.ly/tfsd-wdbit.ly/tfsd-wd Thinkful Coding Prep Course 25