Level 45 Level 47
Level 46

[Quiz] Strings


68 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
String.length
returns the length of a string (number of characters).
String.charAt()
string.charAt(index). The charAt() method returns the character at the specified index in a string.
String.charCodeAt()
string.charCodeAt(index). The charCodeAt() method returns the Unicode of the character at the specified index in a string.
String.concat()
string.concat(string1, string2, ..., stringX). The concat() method is used to join two or more strings.
String.fromCharCode()
String.fromCharCode(n1, n2, ..., nX). The fromCharCode() method converts Unicode values into characters.
String.indexOf()
string.indexOf(searchvalue,start). The indexOf() method returns the position of the first occurrence of a specified value in a string.
String.lastIndexOf()
string.lastIndexOf(searchvalue,start). The lastIndexOf() method returns the position of the last occurrence of a specified value in a string.
String.locacleCompare()
string.localeCompare(compareString). The localeCompare() method compares two strings in the current locale.
String.match()
string.match(regexp). The match() method searches a string for a match against a regular expression, and returns the matches, as an Array object.
String.replace()
string.replace(searchvalue,newvalue). The replace() method searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced.
String.search()
string.search(searchvalue). The search() method searches a string for a specified value, and returns the position of the match.
String.slice()
string.slice(start,end). The slice() method extracts parts of a string and returns the extracted parts in a new string.
String.split()
string.split(separator,limit). The split() method is used to split a string into an array of substrings, and returns the new array.
String.substr()
string.substr(start,length). The substr() method extracts parts of a string, beginning at the character at the specified position, and returns the specified number of characters.
String.substring()
string.substring(start,end). The substring() method extracts the characters from a string, between two specified indices, and returns the new sub string.
String.toLowerCase()
string.toLowerCase(). The toLowerCase() method converts a string to lowercase letters.
String.toString()
string.toString(). The toString() method returns the value of a String object.
string.toUpperCase()
Uppercase and lowercase methods
String.trim()
Remove whitespace from string
str.charAt(index)
Returns the character at the specified index.
str.charCodeAt(index)
Returns a number indicating the Unicode value of the character at the given index.
str.concat(string2, string3[, ..., stringN])
Combines the text of two strings and returns a new string.
str.indexOf(searchValue[, fromIndex])
Returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex. Returns -1 if the value is not found.
str.length
Reflects the length of the string.
str.lastIndexOf(searchValue[, fromIndex])
Returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found. The calling string is searched backward, starting at fromIndex.
str.match(regexp)
Retrieves the matches when matching a string against a regular expression.
str.replace(regexp|substr, newSubStr|function[, flags])
Returns a new string with some or all matches of a pattern replaced by a replacement.
str.search([regexp])
Executes a search for a match between a regular expression and this String object.
str.slice(beginSlice[, endSlice])
Extracts a section of a string and returns a new string.
str.split([separator[, limit]])
Splits a String object into an array of strings by separating the string into substrings.
str.substr(start[, length])
Returns the characters in a string beginning at the specified location through the specified number of characters.
str.substring(indexA[, indexB])
Returns a subset of a string between one index and another, or through the end of the string.
str.toLowerCase()
Returns the calling string value converted to lowercase.
str.toUpperCase()
Returns the calling string value converted to uppercase.
str.trim()
Removes whitespace from both ends of a string.
str.link(url)
Creates an <a> HTML element that causes a string to be displayed as a hypertext link to another URL.
str.anchor(name)
Creates an <a> HTML anchor element that is used as a hypertext target.
string or 'string'
Create a string using literal notation.
new String(foo)
Create a string using a constructor notation.
charAt()
Returns the character at the specified index (position)
charCodeAt()
Returns the Unicode of the character at the specified index
concat()
Joins two or more arrays, and returns a copy of the joined arrays.
fromCharCode()
Converts Unicode values to characters
indexOf()
Search the array for an element and returns it's position.
lastIndexOf()
Search the array for an element, starting at the end, and returns it's position.
localeCompare()
Compares two strings in the current locale
match()
Searches a string for a match against a regular expression, and returns the matches
replace()
Searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced
search()
Searches a string for a specified value, or regular expression, and returns the position of the match
slice()
Selects a part of an array, and returns the new array.
split()
Splits a string into an array of substrings
substr()
Extracts the characters from a string, beginning at a specified start position, and through the specified number of character
substring()
Extracts the characters from a string, between two specified indices
toLocaleLowerCase()
Converts a string to lowercase letters, according to the host's locale
toLocaleUpperCase()
Converts a string to uppercase letters, according to the host's locale
toLowerCase()
Converts a string to lowercase letters
toString()
Converts an array to a string, and returns the result.
toUpperCase()
Converts a string to uppercase letters
trim()
Removes whitespace from both ends of a string
valueOf()
Returns the primitive value of an array.
String.prototype.charAt( <index> )
Return the character at a specific index within a String object
String.prototype.concat( < string2 > )
Combine two String objects into one by appending one to the other
Return a boolean value saying whether or not a string contains some other string
String.prototype.indexOf( < string2 > ) [returns index of substring or 0 if not found of FIRST occurrence]
String.prototype.replace( <substr1 >, < substr2 > )
Replace all occurrences of a substring with another substring (is it destructive?)
String.prototype.slice(< startIndex >, < endIndex >)
Return the substring at some range of index values
String.prototype.toLowerCase( < string > )
Convert a string to lower or upper case
String.prototype.trim( < string > )
Remove whitespace from the beginning and end of a string object
Question Mark
A _______ makes an element 'optional' ? it can occur zero or one times.