JSFiddle - React, Tailwind, and code Playground
JavaScript
var possibleSubstrings = function(inp) {
inp.entries((e)=>{console.log(e)});
var res = "";
return res;
}
console.log(possibleSubstrings("abcd"));
//How to find all possible substring of a given string?
//input: abcd
//output : a ab abc abcd b bc bcd c cd d