Intro to Java Flashcards
1
Q
Find the length of a string
A
.length
2
Q
Make a note that the computer ignores
A
//
3
Q
Ask the user to say yes or no
A
confirm()
4
Q
Request in input from the user
A
prompt()
5
Q
What is a string?
A
Letters, spaces, numbers
””
6
Q
What are the boolean values?
A
True or False
7
Q
prints to the console
A
console.log()
8
Q
Greater Than
A
>
9
Q
Less Than
A
<
10
Q
Less than or equal to
A
<=
11
Q
Greater than or equal to
A
> =
12
Q
Equal to
A
===
13
Q
Not equal to
A
!==
14
Q
Syntax of an “if” statement
A
if()
{
code
}
15
Q
Syntax of an “If else” statement
A
If() { code } else { code }