Question:medium

What will be the output of the following JavaScript code ?

Show Hint

To quickly find the number of characters extracted by slice(a, b), perform simple subtraction: $b - a$. For slice(6, 10), the length of the returned string is exactly $10 - 6 = 4$ characters.
Updated On: Jun 29, 2026
  • Compu
  • uter
  • er S
  • ence
Show Solution

The Correct Option is C

Solution and Explanation

Was this answer helpful?
0