Section 1

Preview this deck

Use the if statement to specify a block of code to be executed if the condition is ...

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (17)

Section 1

(17 cards)

Use the if statement to specify a block of code to be executed if the condition is ...

Front

True

Back

A while statement creates a loop that executes a specified statement as long as the test condition is ...? The condition is evaluated before executing the ... ?

Front

True, statement

Back

Local scope: when you declare a variable w/ let or const keywords, these values are ONLY accessible within the...

Front

block

Back

const variables are also block scoped but cannot be ...

Front

updated or redeclared

Back

Use the if else statement to specify a block of code to be executed if the condition can also be...

Front

False

Back

How does the reassigned variable look after let variableName = "this_first"; is assigned to "reassignment" ?

Front

let variableName = "reassignment";

Back

If the condition evaluates as true, what is executed?

Front

Statement

Back

Why should we avoid using var ?

Front

it is globally scoped

Back

For loops have how many optional expressions enclosed in parentheses and separated by semicolons?

Front

3

Back

How do you declare a variable? If you declare a variable only, you will not have a value.

Front

let variableName

Back

What expression must be evaluated before each pass through the loop?

Front

Condition

Back

What are these expressions referred to as?

Front

Initialization; condition; final-expression

Back

Assigning a variable happens when a variable is initialized, or (blank).

Front

reassigned

Back

let is preferred over var because ...

Front

it is block scoped

Back

If, else if, and else statements are what kind of statements?

Front

Conditional

Back

Write a basic while loop with var n = 0; that will iterate because it is true.

Front

var n = 0; while (n < 3) { n++; } console.log(n);

Back

How do you initialize the same variable in order to give it a value of "something"?

Front

let variableName = " something";

Back