Run
Online Code Editor
var str = "Javatpoint"; document.writeln(str.slice(-5,-1));