JavaScript substring method numbers and length combined

let str = "This is a string";

// Return everything from index 4 up to last 6 characters
console.log(str.substring(4, str.length - 6));
/* This will return everything from the 5th
 * character up until the last 6 characters
 * of the string
 */
 
 // Result:
 // is a