String Methods Flashcards

1
Q

charAt()

A

Returns the character at the specified index

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

charCodeAt()

A

Returns the Unicode of the character at the specified index

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

concat()

A

Joins two or more strings and returns a copy of the joined strings

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

fromCharCode()

A

Converts Unicode values to characters

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

indexOf()

A

Returns the position of the first found occurrence of a specified value in a string

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

lastIndexOf()

A

Returns the position of the last found occurrence of a specified value in a string

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

match()

A

Searches for a match between a regular expression and a string, and returns the matches

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

replace()

A

Searches for a match between a substring (or regular expression) and a string, and replaces the matched substring with a new substring

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

search()

A

Searches for a match between a regular expression and a string, and returns the position of the match

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

slice()

A

Extracts a part of a string and returns a new string

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

split()

A

Splits a string into an array of substrings

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

substr()

A

Extracts the characters from a string, beginning at a specified start position, and through the specified number of characters

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

substring()

A

Extracts the characters from a string, between two specified indices

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

toLowerCase()

A

Converts a string to lowercase letters

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

toUpperCase()

A

Converts a string to uppercase letters

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

valueOf()

A

Returns the primitive value of a String object