Programming Languages JavaScript Objective
Mar 04, 2013

How do substring() and substr() differ?

Choose the correct answer:
A) One is not a method of the String object.
B) substr() takes three arguments, substring() only two
C) Only one accepts a desired string length as an argument.
D) Besides the spelling, nothing.
Detailed Explanation

Option C is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback