A

Admin • 828.03K Points
Coach

Q. What will be the result of:
"hello".replace('l', 'x')?

  • (A) hexxo
  • (B) hexxlx
  • (C) helxo
  • (D) hexx

Explanation by: Admin
Both occurrences of 'l' are replaced with 'x', giving 'hexxo'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.