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
Q

Converts Unicode values to characters.

A

String.fromCharCode()

26
Q

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

A

String.indexOf()

27
Q

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

A

String.lastIndexOf()

28
Q

Returns the length of a string.

A

String.length()

29
Q

Compares two strings in the current locale.

A

String.localeCompare()

30
Q

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

A

String.match()

31
Q

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

A

String.replace()

32
Q

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

A

String.search()

33
Q

Extracts a part of a string and returns a new string

A

String.slice()

34
Q

Splits a string into an array of substrings.

A

String.split()

35
Q

Extracts the characters from a string, between two specified indices.

A

String.substring()

36
Q

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

A

String.toLocaleLowerCase()

37
Q

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

A

String.toLocaleUpperCase()

38
Q

Converts a string to lowercase letters

A

String.toLowerCase()

39
Q

Returns the value of a string object.

A

String.toString()

40
Q

Converts a string to uppercase letters.

A

String.toUpperCase()

41
Q

Removes whitespace from both ends of a string.

A

String.trim()

42
Q

Returns the primitive value of a String object.

A

String.valueOf()