0% found this document useful (0 votes)
32 views

Intro To JavaScript Build A Guessing Game PDF

This document provides an introduction to JavaScript and building a guessing game. It covers key JavaScript concepts like variables, functions, conditionals, parameters and comparing values. Code examples and exercises are included to help learn these concepts hands-on.

Uploaded by

OSU92
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Intro To JavaScript Build A Guessing Game PDF

This document provides an introduction to JavaScript and building a guessing game. It covers key JavaScript concepts like variables, functions, conditionals, parameters and comparing values. Code examples and exercises are included to help learn these concepts hands-on.

Uploaded by

OSU92
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

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


codepen.io
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
codepen.io
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 codepen.io
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


bit.ly/tf-guessing-game
Set-up
Industry Overview Applied Examples FAQ’s Take Action!

Solution Starter Code


bit.ly/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

You might also like