Intro to JavaScript:
Build a Guessing Game
Information and practical exercises to add to your current
toolkit or take the first step in launching a new career.
Industry Overview Applied Examples FAQ’s Take Action!
Welcome to Thinkful!
We teach tech skills that lead to fulfilling, high-paying careers.
Our students learn in-demand industry
tools through 100% online programs as
they work toward a job-ready portfolio
with the help of an expert mentor.
Let’s get started.
Industry Overview Applied Examples FAQ’s Take Action!
We’re going to talk about:
Workshop ❏
❏
What We're Making
Key Parts of JavaScript
Rundown
❏ Working On Live Code Together
❏ Take Home Challenge
❏ FAQ and Further Learning
Industry Overview Applied Examples FAQ’s Take Action!
What We’re
Making
Industry Overview Applied Examples FAQ’s Take Action!
Defining a JavaScript Variable
Name of
variable
let numberOfSheep = 20
Initialize Value of
variable variable
Industry Overview Applied Examples FAQ’s Take Action!
Variable Starter Code
[Link]
Examples
Industry Overview Applied Examples FAQ’s Take Action!
JavaScript Functions
Name of
function
Initialize
function
function greet(){
return “Hello world!”;
}
What the
function does
Industry Overview Applied Examples FAQ’s Take Action!
Function
Starter Code
[Link]
Examples
Industry Overview Applied Examples FAQ’s Take Action!
If / Else Statements
Family Road Trip
Need gas?
If true If false
Go to gas station Keep driving
Industry Overview Applied Examples FAQ’s Take Action!
If / Else Statements
function familyRoadtrip(){
if(needGas === true){
getGas();
}
else{
keepDriving();
}
}
Industry Overview Applied Examples FAQ’s Take Action!
Comparing
Values === (equal to)
5 === 5 --> true
5 === 6 --> false
Determine equality or difference
between variables or values
!== (not equal to)
❏ Common ones include “equal to”
and “not equal to” 5!== 5 --> false
❏ Result in true/false values 5!== 6 --> true
Industry Overview Applied Examples FAQ’s Take Action!
Comparing
Starter Code
Values [Link]
Industry Overview Applied Examples FAQ’s Take Action!
Parameters In
Functions
Parameters in
Declaration
function adder (a,b){ Parameters used
return a+b; within the
} function
adder(1,2);
Industry Overview Applied Examples FAQ’s Take Action!
Function Parameters
In Action
Industry Overview Applied Examples FAQ’s Take Action!
Real Developers
Use Google...
A Lot!
Industry Overview Applied Examples FAQ’s Take Action!
Glitch Starter Code
[Link]/tf-guessing-game
Set-up
Industry Overview Applied Examples FAQ’s Take Action!
Solution Starter Code
[Link]/TF-Guess-Game-Solution
Industry Overview Applied Examples FAQ’s Take Action!
?
Common Questions
You might also be wondering
❏ What are the outcomes of your students for
this field?
❏ How do I show my work to a potential
employer?
❏ Is this course entirely online?
❏ What should I do from here?
Industry Overview Applied Examples FAQ’s Take Action!
Take the First Step
to A New Career
Anyone who’s driven to change their future and achieve a
high-earning career is able to enter the world’s next
workforce. We’ll be by your side as you build the skills
you need, with personal mentorship and an active, online
community of students and educators.
Expand your career opportunities by breaking into tech.
Chat with an admissions rep and we’ll help you find the
perfect fit.
Schedule a Call