let myString = "JavaScript";
let sliced = myString.slice(0, 4);  // Output: Java
let substringed = myString.substring(4, 10);  // Output: Script
let substrd = myString.substr(4, 6);  // Output: Script