String Methods Quiz
Multiple Choice Easy
Question
What does `"Hello World".split(" ")` return?
Hint
split divides a string by the separator into an array.
Explanation
split(" ") splits the string at each space character and returns an array of the parts. "Hello World".split(" ") produces ["Hello", "World"]. Other useful string methods include slice, replace, toUpperCase, trim, and includes.
Related Resources
Related Lessons
- JavaScript Data Types
Learn about string methods.
Related Reference
- JavaScript String Methods
Reference for string methods.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.