Posted On: Feb 22, 2018
string.length-1 is used to get the last index of a string in Javascript
Example Usage:-
var myString="JavascriptQuestions"; console.log(myString.length-1);
Never Miss an Articles from us.
Javascript Javascript is an object-oriented computer programming language commonly used to create interactive effects wi..
What is the difference between let and var?..