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