A

Admin • 830.13K Points
Coach

Q. What is the result of
"Hello".substring(1, 4)?

  • (A) Hel
  • (B) ell
  • (C) llo
  • (D) ellO

Explanation by: Admin
substring(1,4) gives characters from index 1 to 3 (excluding 4), which is "ell".

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.