String Flashcards

1
Q

String.charAt()

A

Returns the character at the specified index position.

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

String.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

String.concat()

A

Joins two or more strings, and returns a new joined string.

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

String.fromCharCode()

A

Converts Unicode values to characters.

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

String.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

String.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

String.length()

A

Returns the length of a string.

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

String.localeCompare()

A

Compares two strings in the current locale.

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

String.match()

A

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

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

String.replace()

A

Searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced.

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

String.search()

A

Searches a string for a specified value, or regular expression, and returns the position of the match.

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

String.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
13
Q

String.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
14
Q

String.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
15
Q

String.toLocaleLowerCase()

A

Converts a string to lowercase letters, according to the host’s locale.

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

String.toLocaleUpperCase()

A

Converts a string to uppercase letters, according to the host’s locale.

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

String.toLowerCase()

A

Converts a string to lowercase letters

18
Q

String.toString()

A

Returns the value of a string object.

19
Q

String.toUpperCase()

A

Converts a string to uppercase letters.

20
Q

String.trim()

A

Removes whitespace from both ends of a string.

21
Q

String.valueOf()

A

Returns the primitive value of a String object.

22
Q

Returns the character at the specified index position.

A

String.charAt()

23
Q

Returns the Unicode of the character at the specified index.

A

String.charCodeAt()

24
Q

Joins two or more strings, and returns a new joined string.

A

String.concat()

25
Converts Unicode values to characters.
String.fromCharCode()
26
Returns the position of the first found occurrence of a specified value in a string.
String.indexOf()
27
Returns the position of the last found occurrence of a specified value in a string
String.lastIndexOf()
28
Returns the length of a string.
String.length()
29
Compares two strings in the current locale.
String.localeCompare()
30
Searches a string for a match against a regular expression, and returns the matches.
String.match()
31
Searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced.
String.replace()
32
Searches a string for a specified value, or regular expression, and returns the position of the match.
String.search()
33
Extracts a part of a string and returns a new string
String.slice()
34
Splits a string into an array of substrings.
String.split()
35
Extracts the characters from a string, between two specified indices.
String.substring()
36
Converts a string to lowercase letters, according to the host's locale.
String.toLocaleLowerCase()
37
Converts a string to uppercase letters, according to the host's locale.
String.toLocaleUpperCase()
38
Converts a string to lowercase letters
String.toLowerCase()
39
Returns the value of a string object.
String.toString()
40
Converts a string to uppercase letters.
String.toUpperCase()
41
Removes whitespace from both ends of a string.
String.trim()
42
Returns the primitive value of a String object.
String.valueOf()