Answers for "How to use JavaScript substring() to extract substring"

0

How to use JavaScript substring() to extract substring

const greet = "Hello, World!";
const substring = greet.substring(0, 5);
console.log(substring); 
// Output: "Hello"
Posted by: Raja MS on January-13-2024

Code answers related to "How to use JavaScript substring() to extract substring"

Code answers related to "Javascript"

Browse Popular Code Answers by Language