SlideShare a Scribd company logo
Intro to JavaScript: FundamentalsIntro to JavaScript: Fundamentals
May 2018
PDF Slides + Starter code: bit.ly/introjs-sdPDF Slides + Starter code: bit.ly/introjs-sd
 
Interactive Slides: bit.ly/sd-slides-5218
Wi : Deskhub-main   PW: stake2017!
1
Instructor
Amanda Pattridge 
Bootcamp Graduate
Application Developer at TechFlow
TA
bit.ly/introjs-sd
Tanner Gill
Thinkful Graduate
React Native developer
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
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78 (12)
Jordan Zurowski
 
PDF
Intro js3.22.18
Jordan Zurowski
 
PDF
Introjscb112817
Thinkful
 
PDF
Introjssd 11.8.17
Thinkful
 
PDF
Intro to JavaScript
Aaron Lamphere
 
PDF
Thinkful DC - Intro to JavaScript
TJ Stalcup
 
PDF
tfIjspdx080717
Thinkful
 
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-47
Ivy Rueb
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78 (12)
Jordan Zurowski
 
Intro js3.22.18
Jordan Zurowski
 
Introjscb112817
Thinkful
 
Introjssd 11.8.17
Thinkful
 
Intro to JavaScript
Aaron Lamphere
 
Thinkful DC - Intro to JavaScript
TJ Stalcup
 
tfIjspdx080717
Thinkful
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-47
Ivy Rueb
 

Similar to Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-52-74-451 (20)

PDF
Introjs2.13.18sd
Jordan Zurowski
 
PDF
Introjs1.9.18tf
Thinkful
 
PDF
Itjsf13
Thinkful
 
PDF
Itjsf13
Thinkful
 
PDF
Itjsf320
Shannon Gallagher
 
PDF
Introjs10.5.17SD
Thinkful
 
PDF
Itjsf129
Thinkful
 
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78-171-219-304-310-388 (1)
Justin Ezor
 
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55
Ivy Rueb
 
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-454
Justin Ezor
 
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14
Thinkful
 
PDF
Ijsphx927
Thinkful
 
PDF
(LA 1/16/18) Intro to JavaScript: Fundamentals
Thinkful
 
PDF
Intro To JavaScript
Ivy Rueb
 
PDF
Itjsf49
Kati Long
 
PDF
Itjs124
Thinkful
 
PDF
1/16/18 Intro to JS Workshop
Thinkful
 
PDF
LA 1/16/18 Intro to Javascript: Fundamentals
Thinkful
 
PDF
Intro to JavaScript
Aaron Lamphere
 
PDF
Itjs111
Thinkful
 
Introjs2.13.18sd
Jordan Zurowski
 
Introjs1.9.18tf
Thinkful
 
Itjsf13
Thinkful
 
Itjsf13
Thinkful
 
Introjs10.5.17SD
Thinkful
 
Itjsf129
Thinkful
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78-171-219-304-310-388 (1)
Justin Ezor
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55
Ivy Rueb
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-454
Justin Ezor
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14
Thinkful
 
Ijsphx927
Thinkful
 
(LA 1/16/18) Intro to JavaScript: Fundamentals
Thinkful
 
Intro To JavaScript
Ivy Rueb
 
Itjsf49
Kati Long
 
Itjs124
Thinkful
 
1/16/18 Intro to JS Workshop
Thinkful
 
LA 1/16/18 Intro to Javascript: Fundamentals
Thinkful
 
Intro to JavaScript
Aaron Lamphere
 
Itjs111
Thinkful
 
Ad

More from Justin Ezor (20)

PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-353-412-457
Justin Ezor
 
PDF
Deck 6-456 (1)
Justin Ezor
 
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-317-409-417-452
Justin Ezor
 
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-173-252-450
Justin Ezor
 
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-128-133-443 (1)
Justin Ezor
 
PDF
Deck 4-361-414-444
Justin Ezor
 
PDF
Deck 6-130-441
Justin Ezor
 
PDF
Deck 6-80-140-196-213-271-321-364-438 (2)
Justin Ezor
 
PDF
Deck 6-80-140-196-213-271-321-364-438 (1)
Justin Ezor
 
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-431 (1)
Justin Ezor
 
PDF
Deck 4-361-414-420
Justin Ezor
 
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-317-409-417
Justin Ezor
 
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-41-93-163-212-239-274-347-408 (1)
Justin Ezor
 
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-41-93-163-212-239-274-347-408
Justin Ezor
 
PDF
Deck 6-80-140-196-213-271-321-364-413
Justin Ezor
 
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-317-409 (1)
Justin Ezor
 
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-405 (2)
Justin Ezor
 
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-405 (1)
Justin Ezor
 
PDF
Build your own website - LA 3-20-18
Justin Ezor
 
PDF
Intro to JavaScript: FUNdamentals (3/7/18)
Justin Ezor
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-353-412-457
Justin Ezor
 
Deck 6-456 (1)
Justin Ezor
 
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-317-409-417-452
Justin Ezor
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-173-252-450
Justin Ezor
 
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-128-133-443 (1)
Justin Ezor
 
Deck 4-361-414-444
Justin Ezor
 
Deck 6-130-441
Justin Ezor
 
Deck 6-80-140-196-213-271-321-364-438 (2)
Justin Ezor
 
Deck 6-80-140-196-213-271-321-364-438 (1)
Justin Ezor
 
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-431 (1)
Justin Ezor
 
Deck 4-361-414-420
Justin Ezor
 
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-317-409-417
Justin Ezor
 
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-41-93-163-212-239-274-347-408 (1)
Justin Ezor
 
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-41-93-163-212-239-274-347-408
Justin Ezor
 
Deck 6-80-140-196-213-271-321-364-413
Justin Ezor
 
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-317-409 (1)
Justin Ezor
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-405 (2)
Justin Ezor
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-405 (1)
Justin Ezor
 
Build your own website - LA 3-20-18
Justin Ezor
 
Intro to JavaScript: FUNdamentals (3/7/18)
Justin Ezor
 
Ad

Recently uploaded (20)

PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 

Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-52-74-451

  • 1. Intro to JavaScript: FundamentalsIntro to JavaScript: Fundamentals May 2018 PDF Slides + Starter code: bit.ly/introjs-sdPDF Slides + Starter code: bit.ly/introjs-sd   Interactive Slides: bit.ly/sd-slides-5218 Wi : Deskhub-main   PW: stake2017! 1
  • 2. Instructor Amanda Pattridge  Bootcamp Graduate Application Developer at TechFlow TA bit.ly/introjs-sd Tanner Gill Thinkful Graduate React Native developer 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