JavaScript Strings (original) (raw)

Which method is used to convert a string to an array of words based on space as a separator?

Which method is used to check if a string ends with a specific substring?

Which method is used to check if a string starts with a specific substring?

Which method is used to extract a substring from a string based on its position and length?

Which method is used to repeat a string a specified number of times in JavaScript?

Which method is used to convert a string to a number in JavaScript?

Which method is used to replace a specified substring with a new substring in a string?

Which method is used to remove whitespace from both ends of a string in JavaScript?

Which method is used to find the index of the first occurrence of a specific character or substring in a string?

Which method is used to concatenate two or more strings in JavaScript?

There are 10 questions to complete.

Take a part in the ongoing discussion