- A true
- B false
- C "false"
- D "true"
- Share this MCQ
Answer:
A
Share this MCQ
The startsWith
method in JavaScript is a method that can be called on a string value to determine whether the string starts with the specified string.
In this case, the startsWith
method is called on the string "Hello World!"
, with the string "Hello"
as the argument.
Since the string "Hello World!
" does start with the string "Hello", the startsWith
method will return true.
Share this MCQ