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>
β
Correct Answer: (A)
al
<script type="text/javascript" language="javascript"> var a = "Scaler"; var result = a.substring(2, 4); document.write(result); </script>
You must be Logged in to update hint/solution