The substring() of a String returns a specified part of the string between a start index and end index.

    
    const message = "JavaScript is fun.";

    const messageSubstring = message.substring(11, 13);

    console.log(messageSubstring);
    // "is"