Classes Flashcards

1
Q

Absolute value

A

Math.abs(espression);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

y to the power of x

A

Math.pow(y, x);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

addition, subtraction, multiplication, & division

A

+,
-,
* or (),
/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

initialize string

A

String name = “”;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

section of a string

A

name.substring(index, index after required value)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Get the index of the value in a string

A

name.indexOf(value);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly