A

Admin • 833K Points
Coach

Q. What will be the output of the following code snippet?

Code:
<script type="text/javascript" language="javascript">

var a = "Scaler";
var result = a.substring(2, 4);
document.write(result);

</script>
  • (A) al
  • (B) ale
  • (C) cal
  • (D) caler
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category JavaScript
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.