String Slicing
Write a Javascript Program for String Slicing
The below link contains String Slicing Question and Test cases
https://drive.google.com/file/d/1FyEmmo5k4KeZPnFcLVWUyqiPZGXVs1nz/view?usp=sharing
The below link contains code
https://drive.google.com/file/d/1Y-86sblnbImafltwE2vMmsfUINcXnSrp/view?usp=sharing
In this Javascript coding program they had two test cases
We need all two test cases can be came when code was run. I want exact outputs for all two test cases
Just add the code below:
/* Write your code here */
let index = aqString.find(inputString, subString);
if (isNaN(index) && index <= inputString.length) {
console.log(inputString.split(index));
}
Comments
Leave a comment