Search Header Logo
Javascript Operator

Javascript Operator

Assessment

Presentation

Computers

1st Grade

Practice Problem

Hard

Created by

Erika Precia

Used 3+ times

FREE Resource

37 Slides • 0 Questions

1

media

JAVASCRIPT

Search . . .

COMPUTER Technology

OPERATORS

2

media

On a scale of 1 to 5, how excited are you for our
new lesson today?

1

5

3

media

ATTENDANCE

4

media

ATTENDANCE

5

media

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

media

Search . . .

COMPUTER Technology

7

media

Why it is

necessary to use

a variable in
Javascript?

Search . . .

ESSENTIAL QUESTION

COMPUTER Technology

8

media

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

media

Search . . .
REVIEW

How do we tell Javascript that
we're working with a variable?

COMPUTER Technology

10

media

Search . . .
REVIEW

var x = 10;

COMPUTER Technology

11

media

Search . . .
REVIEW

Choose the correct keyword to
declare a variable and assign

the value 24.

____ my number = ____

COMPUTER Technology

12

media

Search . . .
REVIEW

Which of these characters can we

use to start a variable?

Numbers
Mathematical
Operators
Underscore Sign(_) Letters

COMPUTER Technology

13

media

Search . . .
REVIEW

To create a string, we need to put

the text inside

<string> </string>

Quotation Marks

/Symbol

COMPUTER Technology

14

media

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

media

Search . . .

MULTIPLE LINE COMMENTS

To create a multi-line comment, we write it

between /*and */

COMPUTER Technology

16

media

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

media

Search . . .
REVIEW

What is the output of this code?

//var x = 8;
var x = 2;
// var x = 9;

document.write(x);

18

media

Search . . .
DATA TYPES

NUMBERS

19

media

CHECK

Fill in the blanks to declare a variable age

and assign it the number 18.

var
=

;

20

media

Search . . .
DATA TYPES

STRINGS

21

media

Search . . .
DATA TYPES

STRINGS

backslash (\) escape character

When you need to put quotes within string.

22

media

Search . . .

Which of the following is the

escape character?

\

"

/

/*

23

media

Search . . .
DATA TYPES

BOOLEANS

TRUE OR FALSE

24

media

Search . . .

ARITHMETIC OPERATOR

COMPUTER Technology

25

media

Search . . .

What will the following

statements display?

Test

5+7

12

COMPUTER Technology

var test = 5+7;

document.write(test);

26

media

Search . . .

What character do we use for

Multiplication?

x

&

*

COMPUTER Technology

27

media

Search . . .

What character do we use for

Division?

/

-

÷

COMPUTER Technology

28

media

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

media

Search . . .

COMPARISON OPERATOR

COMPUTER Technology

30

media

Search . . .

COMPARISON OPERATOR

COMPUTER Technology

31

media

Search . . .

COMPARISON OPERATOR

COMPUTER Technology

32

media

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

media

Search . . .

BOOLEAN OPERATOR

COMPUTER Technology

Also known as Logical Operator and it

evaluates an expression.

Output =TRUE or FALSE

34

media

Search . . .

BOOLEAN OPERATOR

COMPUTER Technology

35

media

Search . . .

BOOLEAN OPERATOR

COMPUTER Technology

36

media

Search . . .

BOOLEAN OPERATOR

COMPUTER Technology

37

media

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

media

JAVASCRIPT

Search . . .

COMPUTER Technology

OPERATORS

Show answer

Auto Play

Slide 1 / 37

SLIDE