Intro to Javascript August 2017 WIFI: In3Guest Check in to Facebook (or Skip) http://bit.ly/js-intro-dc 1
Instructor TJ Stalcup Lead DC Mentor @ Thinkful API Evangelist @ WealthEngine 1996 - ???? TAs bit.ly/js-intro-dcWiFi: In3Guest​ 2
About you What's your name? What brought you here today? What is your programming experience? bit.ly/js-intro-dcWiFi: In3Guest​ 3
About Thinkful Thinkful helps people become developers or data scientists through 1-on-1 mentorship and project-based learning These workshops are built using this approach.These workshops are built using this approach. bit.ly/js-intro-dcWiFi: In3Guest​ 4
Suggestions for learning Don't get discouraged, struggle leads to masterystruggle leads to mastery Don't be shy, take full advantage of our supporttake full advantage of our support bit.ly/js-intro-dcWiFi: In3Guest​ 5
Agenda Learn key Javascript concepts (30 min) Go over assignments (10 min) Complete assignments with our support! (30 min) Go over answer key (10 min) Steps to continue learning (10 min) bit.ly/js-intro-dcWiFi: In3Guest​ 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 bit.ly/js-intro-dcWiFi: In3Guest​ 7
Client/Servers Client (sends requests) Frontend Developer Manages what user sees Server (sends response) Backend Developer Manages what app does bit.ly/js-intro-dcWiFi: In3Guest​ 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 files Application LogicApplication Logic Initial requestInitial request Following responseFollowing response bit.ly/js-intro-dc 9 WiFi: In3Guest​
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 files Application LogicApplication Logic Initial requestInitial request Following responseFollowing response We'll be writing Javascript, the code that the browser uses to run the app 10 bit.ly/js-intro-dcWiFi: In3Guest​
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/js-intro-dcWiFi: In3Guest​ 11
Javascript today Has large community of developers, libraries and frameworks Lots of job opportunities Also the syntax is easier to understand for first-time developers bit.ly/js-intro-dcWiFi: In3Guest​ 12
Defining a variable with Javascript var numberOfSheep = 20 Initialize variable Name of variable Value of variable bit.ly/js-intro-dcWiFi: In3Guest​ 13
Variable examples bit.ly/js-intro-dc JSBin.com WiFi: In3Guest​ 14
Declaring a function with Javascript function greet() { return "Hello world!"; } Initialize function Name of function What the function does bit.ly/js-intro-dcWiFi: In3Guest​ 15
Function examples bit.ly/js-intro-dc JSBin.com WiFi: In3Guest​ 16
If/Else Statements go to gas stationkeep driving if false if true need gas? family roadtrip bit.ly/js-intro-dcWiFi: In3Guest​ 17
If/Else Statements function familyRoadtrip() { if (needGas == true) { getGas(); } else { keepDriving(); } } bit.ly/js-intro-dcWiFi: In3Guest​ 18
Comparing Values == (equal to) 5 == 5 --> true 5 == 6 --> false != (not equal to) 5 != 5 --> false 5 != 6 --> true bit.ly/js-intro-dcWiFi: In3Guest​ 19
If/Else Statements and Comparing Values bit.ly/ js-intro-dc JSBin.com WiFi: In3Guest​ 20
Parameters within functions function adder(a, b) { return a + b; } adder(1,2); Parameters in declaration Parameters used within the function bit.ly/js-intro-dcWiFi: In3Guest​ 21
Examples of parameters within functions bit.ly/ js-intro-dc JSBin.com WiFi: In3Guest​ 22
Real developers use Google... a lot bit.ly/js-intro-dcWiFi: In3Guest​ 23
Repl.it setup & first steps! http://bit.ly/tf-intro-js-challenges bit.ly/js-intro-dcWiFi: In3Guest​ 24
Ways to keep learning More Structure Less Structure More SupportLess Support 25
For aspiring developers, bootcamps fill the gap 26
87%87% job-placement rate + job guarantee Link for the third party audit jobs report: https://www.thinkful.com/bootcamp-jobs-statshttps://www.thinkful.com/bootcamp-jobs-stats Thinkful's track record of getting students jobs 27
Our students receive unprecedented support Your Mentor Q&A Sessions Career CoachSlack Program Manager YouYou Local Community 28
Mentorship enables flexible learning Learn anywhere, anytime, & at your own pace You don't have to quitYou don't have to quit your job to startyour job to start career transitioncareer transition 29
Take a Thinkful tour! Talk to one of us or email tj@thinkful.comtj@thinkful.com to learn more Get a tour of Thinkful's program to see if project- based, online learning is a good fit for you While we're at it, give us feedback on tonight's workshop. 30

Thinkful DC - Intro to JavaScript

  • 1.
    Intro to Javascript August2017 WIFI: In3Guest Check in to Facebook (or Skip) http://bit.ly/js-intro-dc 1
  • 2.
    Instructor TJ Stalcup Lead DCMentor @ Thinkful API Evangelist @ WealthEngine 1996 - ???? TAs bit.ly/js-intro-dcWiFi: In3Guest​ 2
  • 3.
    About you What's yourname? What brought you here today? What is your programming experience? bit.ly/js-intro-dcWiFi: In3Guest​ 3
  • 4.
    About Thinkful Thinkful helpspeople become developers or data scientists through 1-on-1 mentorship and project-based learning These workshops are built using this approach.These workshops are built using this approach. bit.ly/js-intro-dcWiFi: In3Guest​ 4
  • 5.
    Suggestions for learning Don'tget discouraged, struggle leads to masterystruggle leads to mastery Don't be shy, take full advantage of our supporttake full advantage of our support bit.ly/js-intro-dcWiFi: In3Guest​ 5
  • 6.
    Agenda Learn key Javascriptconcepts (30 min) Go over assignments (10 min) Complete assignments with our support! (30 min) Go over answer key (10 min) Steps to continue learning (10 min) bit.ly/js-intro-dcWiFi: In3Guest​ 6
  • 7.
    How the webworks 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 bit.ly/js-intro-dcWiFi: In3Guest​ 7
  • 8.
    Client/Servers Client (sends requests) FrontendDeveloper Manages what user sees Server (sends response) Backend Developer Manages what app does bit.ly/js-intro-dcWiFi: In3Guest​ 8
  • 9.
    Example: facebook.com Client Server Openbrowser and navigate to facebook.com HTML, CSS, & Javascrip render newsfeed Request Response Algorithm determines content of feed. Sends back HTML, CSS, Javascript files Application LogicApplication Logic Initial requestInitial request Following responseFollowing response bit.ly/js-intro-dc 9 WiFi: In3Guest​
  • 10.
    Example: facebook.com Client Server Openbrowser and navigate to facebook.com HTML, CSS, & Javascrip render newsfeed Request Response Algorithm determines content of feed. Sends back HTML, CSS, Javascript files Application LogicApplication Logic Initial requestInitial request Following responseFollowing response We'll be writing Javascript, the code that the browser uses to run the app 10 bit.ly/js-intro-dcWiFi: In3Guest​
  • 11.
    History of Javascript Writtenby 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/js-intro-dcWiFi: In3Guest​ 11
  • 12.
    Javascript today Has largecommunity of developers, libraries and frameworks Lots of job opportunities Also the syntax is easier to understand for first-time developers bit.ly/js-intro-dcWiFi: In3Guest​ 12
  • 13.
    Defining a variablewith Javascript var numberOfSheep = 20 Initialize variable Name of variable Value of variable bit.ly/js-intro-dcWiFi: In3Guest​ 13
  • 14.
  • 15.
    Declaring a functionwith Javascript function greet() { return "Hello world!"; } Initialize function Name of function What the function does bit.ly/js-intro-dcWiFi: In3Guest​ 15
  • 16.
  • 17.
    If/Else Statements go togas stationkeep driving if false if true need gas? family roadtrip bit.ly/js-intro-dcWiFi: In3Guest​ 17
  • 18.
    If/Else Statements function familyRoadtrip(){ if (needGas == true) { getGas(); } else { keepDriving(); } } bit.ly/js-intro-dcWiFi: In3Guest​ 18
  • 19.
    Comparing Values == (equalto) 5 == 5 --> true 5 == 6 --> false != (not equal to) 5 != 5 --> false 5 != 6 --> true bit.ly/js-intro-dcWiFi: In3Guest​ 19
  • 20.
    If/Else Statements andComparing Values bit.ly/ js-intro-dc JSBin.com WiFi: In3Guest​ 20
  • 21.
    Parameters within functions functionadder(a, b) { return a + b; } adder(1,2); Parameters in declaration Parameters used within the function bit.ly/js-intro-dcWiFi: In3Guest​ 21
  • 22.
    Examples of parameterswithin functions bit.ly/ js-intro-dc JSBin.com WiFi: In3Guest​ 22
  • 23.
    Real developers useGoogle... a lot bit.ly/js-intro-dcWiFi: In3Guest​ 23
  • 24.
    Repl.it setup &first steps! http://bit.ly/tf-intro-js-challenges bit.ly/js-intro-dcWiFi: In3Guest​ 24
  • 25.
    Ways to keeplearning More Structure Less Structure More SupportLess Support 25
  • 26.
    For aspiring developers,bootcamps fill the gap 26
  • 27.
    87%87% job-placement rate +job guarantee Link for the third party audit jobs report: https://www.thinkful.com/bootcamp-jobs-statshttps://www.thinkful.com/bootcamp-jobs-stats Thinkful's track record of getting students jobs 27
  • 28.
    Our students receiveunprecedented support Your Mentor Q&A Sessions Career CoachSlack Program Manager YouYou Local Community 28
  • 29.
    Mentorship enables flexiblelearning Learn anywhere, anytime, & at your own pace You don't have to quitYou don't have to quit your job to startyour job to start career transitioncareer transition 29
  • 30.
    Take a Thinkfultour! Talk to one of us or email tj@thinkful.comtj@thinkful.com to learn more Get a tour of Thinkful's program to see if project- based, online learning is a good fit for you While we're at it, give us feedback on tonight's workshop. 30