Textboxes and Conditional Statements

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

Math.random()

generate a random number between 0 and 1

2
New cards

Math.round(Math.random())

generate either 0 or 1

3
New cards

>=

logical operator for greater than

4
New cards

<=

logical operator for less than

5
New cards

!=

logical operator for not equal

6
New cards

==

logical operator for comparison

7
New cards

&&

logical operator that all given conditions need to be satisfied

8
New cards

||

logical operator that any given condition needs to be satisfied

9
New cards

%

modulus operator

10
New cards

if(x>=40)

{

document.getElementById(‘letter’).value=”A”

}

if var x is larger than or equal to 40 make id=”letter” value A

11
New cards

document.getElementById(‘result’).value=Math.round(x)

round the answer of var x for the value of id=”result”