0
<script type="text/javascript" language="javascript"> var a = "blogsforRead"; var result = a.substring(4, 5); document.write(result); </script>

Open 1 Answers 74 Views Technology
<script type="text/javascript" language="javascript">

  

var a = "blogsforRead";

var result = a.substring(4, 5);

document.write(result);

  

</script>

A. sf

B. ks

C. s

D. k

1 Answer

0

Ans: C
Explanation: The substring command selects the substring starting from 4 to 5, excluding the 5th index. The indexing starts from 0. So, the output here is just “s” rather than sf.

by (279k points)
...