SlideShare a Scribd company logo
Intro to JavaScript: FUNdamentalsIntro to JavaScript: FUNdamentals
March 2018
http://bit.ly/js­fun­lahttp://bit.ly/js­fun­la
Wi-Fi: Cross Camp.us Events
 
1
Instructor
Justin Ezor
Thinkful LA Community
Manager & Web Developer
TA's
2
About you
What's your name? 
What brought you here today?
What is your programming experience?
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 specific files
Browser receives those files and renders them as a website
6
Client/Servers
Client (sends requests)
Frontend Developer
Manages what user sees
Server (sends response)
Backend Developer
Manages what app does
7
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
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
Defining a variable with JavaScript
var numberOfSheep = 20var numberOfSheep = 20
Initialize variable
Name of variable
Value of variable
10
Variable examples
JSBin.com
11
Declaring a function with JavaScript
function greet() {function greet() {
   return "Hello world!";   return "Hello world!";
}}
Initialize function Name of function
What the function does
12
Function examples
JSBin.com
13
If/Else Statements
go to gas stationkeep driving
if false if true
need gas?
family roadtrip
14
If/Else Statements
function familyRoadtrip() {
    if (needGas == true) {
        getGas();
    }
    else {
        keepDriving();
    }
}
15
Comparing Values
==    (equal to)
 
         5 == 5  --> true
         5 == 6  --> false
 
!=     (not equal to)
 
         5 != 5  --> false
         5 != 6  --> true
 
16
If/Else Statements and Comparing Values
JSBin.com
17
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
18
Examples of parameters within functions
JSBin.com
19
Real developers use Google... a lot
bit.ly/intro-js-la
20
Repl.it setup & first steps!
bit.ly/tf-intro-js-challenges
21
Ways to keep learning
22
Thinkful's free resource
HTML, CSS and JavaScript
Unlimited group mentor sessions
Personal Program Manager
Student Slack Community
bit.ly/web-free-labit.ly/web-free-la
Web Development Fundamentals Course
23

More Related Content

PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78-171-219-304-310-388 (1)
PDF
PDF
Itjsf49
PDF
Itjsf13
PDF
Itjsf13
PDF
Itjsf129
PDF
Documentation vs test about cucumber but not only for vegetarians
PDF
Péhápkaři v Pecce: Jak jsme neposlali pull request do PHP – Milan Pála – 17. ...
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78-171-219-304-310-388 (1)
Itjsf49
Itjsf13
Itjsf13
Itjsf129
Documentation vs test about cucumber but not only for vegetarians
Péhápkaři v Pecce: Jak jsme neposlali pull request do PHP – Milan Pála – 17. ...

Similar to Intro to JavaScript: FUNdamentals (3/7/18) (20)

PDF
1/16/18 Intro to JS Workshop
PDF
LA 1/16/18 Intro to Javascript: Fundamentals
PDF
Intro js3.22.18
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78 (12)
PDF
(LA 1/16/18) Intro to JavaScript: Fundamentals
PDF
LA 1/31/18 Intro to JavaScript: Fundamentals
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-52-74-451
PDF
Intro to javascript (5:2)
PDF
Introjs1.9.18tf
PDF
Introjssd 11.8.17
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14
PDF
Introjs2.13.18sd
PDF
LA 1/31/18 Intro to JavaScript: Fundamentals
PDF
tfIjspdx080717
PDF
Introjscb112817
PDF
Intro to javascript (6:27)
PDF
Itjs124
PDF
Intro to JavaScript
PDF
Thinkful DC - Intro to JavaScript
1/16/18 Intro to JS Workshop
LA 1/16/18 Intro to Javascript: Fundamentals
Intro js3.22.18
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78 (12)
(LA 1/16/18) Intro to JavaScript: Fundamentals
LA 1/31/18 Intro to JavaScript: Fundamentals
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-52-74-451
Intro to javascript (5:2)
Introjs1.9.18tf
Introjssd 11.8.17
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14
Introjs2.13.18sd
LA 1/31/18 Intro to JavaScript: Fundamentals
tfIjspdx080717
Introjscb112817
Intro to javascript (6:27)
Itjs124
Intro to JavaScript
Thinkful DC - Intro to JavaScript
Ad

More from Justin Ezor (20)

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

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cell Types and Its function , kingdom of life
PDF
Computing-Curriculum for Schools in Ghana
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
01-Introduction-to-Information-Management.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Final Presentation General Medicine 03-08-2024.pptx
Chinmaya Tiranga quiz Grand Finale.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Microbial diseases, their pathogenesis and prophylaxis
Cell Types and Its function , kingdom of life
Computing-Curriculum for Schools in Ghana
102 student loan defaulters named and shamed – Is someone you know on the list?
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
01-Introduction-to-Information-Management.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Anesthesia in Laparoscopic Surgery in India
STATICS OF THE RIGID BODIES Hibbelers.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
GDM (1) (1).pptx small presentation for students
human mycosis Human fungal infections are called human mycosis..pptx
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx

Intro to JavaScript: FUNdamentals (3/7/18)

  • 1. Intro to JavaScript: FUNdamentalsIntro to JavaScript: FUNdamentals March 2018 http://bit.ly/js­fun­lahttp://bit.ly/js­fun­la Wi-Fi: Cross Camp.us Events   1
  • 2. Instructor Justin Ezor Thinkful LA Community Manager & Web Developer TA's 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
  • 7. Client/Servers Client (sends requests) Frontend Developer Manages what user sees Server (sends response) Backend Developer Manages what app does 7
  • 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
  • 12. Declaring a function with JavaScript function greet() {function greet() {    return "Hello world!";   return "Hello world!"; }} Initialize function Name of function What the function does 12
  • 14. If/Else Statements go to gas stationkeep driving if false if true need gas? family roadtrip 14
  • 15. If/Else Statements function familyRoadtrip() {     if (needGas == true) {         getGas();     }     else {         keepDriving();     } } 15
  • 16. Comparing Values ==    (equal to)            5 == 5  --> true          5 == 6  --> false   !=     (not equal to)            5 != 5  --> false          5 != 6  --> true   16
  • 17. If/Else Statements and Comparing Values JSBin.com 17
  • 18. 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 18
  • 19. Examples of parameters within functions JSBin.com 19
  • 20. Real developers use Google... a lot bit.ly/intro-js-la 20
  • 21. Repl.it setup & first steps! bit.ly/tf-intro-js-challenges 21
  • 22. Ways to keep learning 22
  • 23. Thinkful's free resource HTML, CSS and JavaScript Unlimited group mentor sessions Personal Program Manager Student Slack Community bit.ly/web-free-labit.ly/web-free-la Web Development Fundamentals Course 23