

Javascript Operator
Presentation
•
Computers
•
1st Grade
•
Practice Problem
•
Hard
Erika Precia
Used 3+ times
FREE Resource
37 Slides • 0 Questions
1
JAVASCRIPT
Search . . .
COMPUTER Technology
OPERATORS
2
On a scale of 1 to 5, how excited are you for our
new lesson today?
1
5
3
ATTENDANCE
4
ATTENDANCE
5
Rules and
Regulation
"Rules exist for a reason. Rules
exist because when people
don't follow them, people get
hurt."
Ally Carter
"Rules exist for a reason. Rules
exist because when people
don't follow them, people get
hurt."
Ally Carter
OO
NN
LL
II
NN
EE
n Timen Time
OO
istenisten
nteractnteract
ote Takingote Taking
njoynjoy
6
Search . . .
COMPUTER Technology
7
Why it is
necessary to use
a variable in
Javascript?
Search . . .
ESSENTIAL QUESTION
COMPUTER Technology
8
Search . . .
1. I can identify what are variables in Javascript. (A)
2. I can use variables to store information using
Javascript. (T)
3. I can create a website that will use the input process
in Javascript. (T)
4.I can identify Boolean data types. (A)
5.I understand how to use Boolean data types to
make programs more realistic. (A)
6.I can create a Boolean variable to represent a yes/no
value. (T)
LEARNING TARGETS
COMPUTER Technology
9
Search . . .
REVIEW
How do we tell Javascript that
we're working with a variable?
COMPUTER Technology
10
Search . . .
REVIEW
var x = 10;
COMPUTER Technology
11
Search . . .
REVIEW
Choose the correct keyword to
declare a variable and assign
the value 24.
____ my number = ____
COMPUTER Technology
12
Search . . .
REVIEW
Which of these characters can we
use to start a variable?
Numbers
Mathematical
Operators
Underscore Sign(_) Letters
COMPUTER Technology
13
Search . . .
REVIEW
To create a string, we need to put
the text inside
<string> </string>
Quotation Marks
/Symbol
COMPUTER Technology
14
Search . . .
JAVASCRIPT COMMENTS
Any code after a double slash //, or between /*
and */, is treated as a comment and will be
ignored, and not executed.
COMPUTER Technology
15
Search . . .
MULTIPLE LINE COMMENTS
To create a multi-line comment, we write it
between /*and */
COMPUTER Technology
16
Search . . .
What does a single-line
comment look like?
// This is a comment
**This is a comment
<!--This is a comment-->
%%This is a comment
COMPUTER Technology
17
Search . . .
REVIEW
What is the output of this code?
//var x = 8;
var x = 2;
// var x = 9;
document.write(x);
18
Search . . .
DATA TYPES
NUMBERS
19
CHECK
Fill in the blanks to declare a variable age
and assign it the number 18.
var
=
;
20
Search . . .
DATA TYPES
STRINGS
21
Search . . .
DATA TYPES
STRINGS
backslash (\) escape character
When you need to put quotes within string.
22
Search . . .
Which of the following is the
escape character?
\
"
/
/*
23
Search . . .
DATA TYPES
BOOLEANS
TRUE OR FALSE
24
Search . . .
ARITHMETIC OPERATOR
COMPUTER Technology
25
Search . . .
What will the following
statements display?
Test
5+7
12
COMPUTER Technology
var test = 5+7;
document.write(test);
26
Search . . .
What character do we use for
Multiplication?
x
&
*
COMPUTER Technology
27
Search . . .
What character do we use for
Division?
/
-
÷
COMPUTER Technology
28
Search . . .
COMPARISON OPERATOR
COMPUTER Technology
We can use comparison operators in
logical statements to find out if variables
or values are different or the same.
Output =TRUE or FALSE
29
Search . . .
COMPARISON OPERATOR
COMPUTER Technology
30
Search . . .
COMPARISON OPERATOR
COMPUTER Technology
31
Search . . .
COMPARISON OPERATOR
COMPUTER Technology
32
CODING School
RESET ACCOUNT PASSWORD
HARDWARE
Write a program that takes old and new passwords as inputs and
outputs to the console the Boolean value (true or false) that shows
whether or not they match.
Sample Inputs
erika@zobel123
erika@zobel123
Sample Outputs
TRUE
PRACTICE
33
Search . . .
BOOLEAN OPERATOR
COMPUTER Technology
Also known as Logical Operator and it
evaluates an expression.
Output =TRUE or FALSE
34
Search . . .
BOOLEAN OPERATOR
COMPUTER Technology
35
Search . . .
BOOLEAN OPERATOR
COMPUTER Technology
36
Search . . .
BOOLEAN OPERATOR
COMPUTER Technology
37
ACTIVITY 2
HARDWARE
You go to the grocery store if you are hungry or need food, and
you have enough gas in the car.
A self-describing car will turn right if there are no people in the
crosswalk and you have enough speed.
In order to make cookies, you need to have white or brown sugar,
eggs, flour, and all ingredients need to be fresh with no mold.
You decide to swim in the water if either the air or water
temperature is warm, or you have a wetsuit available.
Take the below statements and write them as Boolean expressions.
You can create whatever Boolean variables you need.
PRACTICE
JAVASCRIPT
Search . . .
COMPUTER Technology
OPERATORS
Show answer
Auto Play
Slide 1 / 37
SLIDE
Similar Resources on Wayground
31 questions
Revision 20210603
Presentation
•
1st Grade
31 questions
Asynchronous Work 1/24/25
Presentation
•
1st Grade
35 questions
Bricks Reading 80(1) Ch. 13-14
Presentation
•
1st Grade
28 questions
Linear of Best Fit
Presentation
•
KG
38 questions
Y1 Unit 3 Part 2
Presentation
•
1st Grade
29 questions
An Application Letter
Presentation
•
1st - 2nd Grade
34 questions
Lesson 5 IT around us
Presentation
•
1st Grade
27 questions
Lesson 4: MANAGING THE REFERENCE DEPARTMENT
Presentation
•
1st Grade
Popular Resources on Wayground
10 questions
HCS SCI 03 Summer School Review 4
Quiz
•
3rd Grade
11 questions
HSMS - Standard Response Protocol
Quiz
•
6th - 8th Grade
16 questions
1.1-1.2 Quiz Review
Quiz
•
9th - 12th Grade
12 questions
Exponent Expressions
Quiz
•
6th Grade
20 questions
Adding and Subtracting Integers
Quiz
•
6th - 7th Grade
11 questions
Northeast States
Quiz
•
3rd - 4th Grade
10 questions
Characterization
Quiz
•
3rd - 7th Grade
10 questions
Common Denominators
Quiz
•
5th Grade