String Objects Method's Flashcards

1
Q

length()

A

numbers of characters in the string

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

a new string with all uppercase letters.

A

toLowerCase

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

a new string with all lowercase letters.

A

toUpperCase

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

Whether or not the string starts with some text.

A

startsWith(test)

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

characters from start index to just before stop index.

A

substring(start, stop)

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

whether or not the string ends with some text

A

endsWith

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

character at a specific index whether or not the string ends with some text.

A

charAt

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

s.charAt(1) returns ‘e’

A

charAt()

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

s.UpperCase() return’s “HELLO”

A

toUpperCase()

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

s.toLowerCase() returns “hello”

A

toLowerCase()

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

s.substring(1, 3) returns “el”

A

substring()

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

s.length() returns 5;

A

length()

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

s.endsWith(“llo”) returns true;

A

endsWith()

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

indexOf(“o”) returns 4;

A

indexOf

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

s.startsWith(“hi”)
returns false

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