Skip to content
🧠 Master React Package Creation — Claim Your Spot

Edit It: Split the given string at each letter 'o' and limit the returned array to two items

Home>split() JavaScript String Method>Edit It: Split the given string at each letter 'o' and limit the returned array to two items

Edit It: Split the given string at each letter 'o' and limit the returned array to two items

This code shows how to split a string at each letter 'o' and limit the returned array to two items.

See it on StackBlitz