Right in the Center (js string algorithm) codewars https://www.codewars.com/kata/5f5da7a415fbdc0001ae3c69/train/javascript function isInMiddle(seq) { // your goes below let str = seq.replace(/abc/g, `$`); let left = str.slice(0, str.indexOf(`$`)); le…