Table of contents Home page
Execute this code
alert("abcdef".slice(2, 4)) // "cd" alert("abcdef".slice(2, -2)) // "cd" (rightmost character has position number -1) alert("abcdef".slice(-4, 4)) // "cd"