Imagine this scenario:
We have an array like this: var arr = [ "Exploring the zoo, we saw every kangaroo jump and quite a few carried babies.", "The wizard quickly jinxed the gnomes before they vaporized.", "The quick brown fox jumps over the lazy dog."];
I am currently working on a way to extract characters surrounding a specific input in the array. For example, if I enter "jinxed", I want to retrieve "wizard quickly" and "gnomes before". It doesn't have to be entire words, just a few characters around the input. I've been struggling with this problem, so any suggestions or tips would be greatly appreciated.
Thank you!