Javascript String Question 7

Introduction

What is the output of the following code?


let myString = "The quick brown fox.";

console.log( myString.substring(4,9)); //  w  ww .  java  2 s. c  o m

console.log( myString.slice(4,9)); 

console.log( myString.slice(-9,-4)); 

console.log( myString.substr(4,5) ); 
quick
quick
rown 
quick



PreviousNext

Related