Intro to JavaScript: FundamentalsIntro to JavaScript: Fundamentals
March 2018
bit.lybit.ly/phx-intro-js/phx-intro-js
1
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
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
Repl.it setup & first steps!
bit.ly/tf-intro-js-challenges
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
13
Function examples
JSBin.com
14
If/Else Statements
go to gas stationkeep driving
if false if true
need gas?
family roadtrip
15
If/Else Statements
function familyRoadtrip() {
    if (needGas == true) {
        getGas();
    }
    else {
        keepDriving();
    }
}
16
Comparing Values
==    (equal to)
 
         5 == 5  --> true
         5 == 6  --> false
 
!=     (not equal to)
 
         5 != 5  --> false
         5 != 6  --> true
 
17
If/Else Statements and Comparing Values
JSBin.com
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
19
Examples of parameters within functions
JSBin.com
20
Real developers use Google... a lot
bit.ly/intro-js-la
21
Ways to keep learning
22
Coding schools fill the gap
Source: Bureau of Labor Statistics
23
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

More Related Content

PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78-171-219-304-310-388 (1)
PDF
Intro to JavaScript: FUNdamentals (3/7/18)
PDF
Itjsf13
PDF
Itjsf13
PDF
bagjsphx828
PDF
PDF
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78-171-219-304-310-388 (1)
Intro to JavaScript: FUNdamentals (3/7/18)
Itjsf13
Itjsf13
bagjsphx828

Similar to Itjsf320 (20)

PDF
Itjsf49
PDF
Itjsf129
PDF
Itjs124
PDF
Intro js3.22.18
PDF
Itjs111
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78 (12)
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-52-74-451
PDF
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-454
PDF
Introjs2.13.18sd
PDF
Introjs1.9.18tf
PDF
tfIjspdx080717
PDF
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-431 (1)
PDF
Ijsphx927
PDF
PDF
bagjsphx828
PDF
bagjsphx828
PDF
1/16/18 Intro to JS Workshop
PDF
(LA 1/16/18) Intro to JavaScript: Fundamentals
PDF
LA 1/16/18 Intro to Javascript: Fundamentals
PDF
Build a Game with JavaScript - Pasadena July
Itjsf49
Itjsf129
Itjs124
Intro js3.22.18
Itjs111
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-55-78 (12)
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-52-74-451
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-7-14-454
Introjs2.13.18sd
Introjs1.9.18tf
tfIjspdx080717
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-9-431 (1)
Ijsphx927
bagjsphx828
bagjsphx828
1/16/18 Intro to JS Workshop
(LA 1/16/18) Intro to JavaScript: Fundamentals
LA 1/16/18 Intro to Javascript: Fundamentals
Build a Game with JavaScript - Pasadena July
Ad

More from Shannon Gallagher (20)

PDF
PDF
PDF
Tf byowwhc
PDF
Tf byowwhc
PDF
Tf itpbapm
PDF
Tf itpptbo
PDF
PDF
Tf itjsbagg
PDF
PDF
Tf ffcchtmlcss
PDF
PDF
PDF
PDF
PDF
PDF
PDF
Tf itpbapm
PDF
PDF
Tf itjsbagg
PDF
Ad

Recently uploaded (20)

PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
IGGE1 Understanding the Self1234567891011
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Empowerment Technology for Senior High School Guide
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
Complications of Minimal Access-Surgery.pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
Computer Architecture Input Output Memory.pptx
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
HVAC Specification 2024 according to central public works department
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
IGGE1 Understanding the Self1234567891011
B.Sc. DS Unit 2 Software Engineering.pptx
Empowerment Technology for Senior High School Guide
TNA_Presentation-1-Final(SAVE)) (1).pptx
Share_Module_2_Power_conflict_and_negotiation.pptx
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Complications of Minimal Access-Surgery.pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Computer Architecture Input Output Memory.pptx
AI-driven educational solutions for real-life interventions in the Philippine...
Environmental Education MCQ BD2EE - Share Source.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Introduction to pro and eukaryotes and differences.pptx
HVAC Specification 2024 according to central public works department
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Cambridge-Practice-Tests-for-IELTS-12.docx

Itjsf320

  • 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
  • 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. Repl.it setup & first steps! bit.ly/tf-intro-js-challenges 12
  • 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
  • 15. If/Else Statements go to gas stationkeep driving if false if true need gas? family roadtrip 15
  • 16. If/Else Statements function familyRoadtrip() {     if (needGas == true) {         getGas();     }     else {         keepDriving();     } } 16
  • 17. Comparing Values ==    (equal to)            5 == 5  --> true          5 == 6  --> false   !=     (not equal to)            5 != 5  --> false          5 != 6  --> true   17
  • 18. If/Else Statements and Comparing Values JSBin.com 18
  • 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
  • 20. Examples of parameters within functions JSBin.com 20
  • 21. Real developers use Google... a lot bit.ly/intro-js-la 21
  • 22. Ways to keep learning 22
  • 23. Coding schools fill the gap Source: Bureau of Labor Statistics 23
  • 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