11.
What is the result of 'Hello'.substring(0, 3) in JavaScript?
12.
How do you trim whitespace from the beginning and end of a string in JavaScript?
13.
What is the result of 'apple'.charAt(2) in JavaScript?
14.
How do you get the index of the first occurrence of a specified substring in a string?
15.
What does the .replace() method do in JavaScript?
16.
How do you extract parts of a string and join them together in JavaScript?
17.
What is the result of 'hello'.toUpperCase().toLowerCase() in JavaScript?
18.
How do you check if a string starts with a specific substring in JavaScript?
19.
What does the .substring() method do in JavaScript?
20.
How do you extract a part of a string and replace it with another substring in JavaScript?