{"ScriptPreparationCode":null,"TestCases":[{"Name":"slice","Code":"const word = \u0022Hello World\u0022;\r\nconst vowels = \u0027aeiou\u0027;\r\nlet newWord = \u0027\u0027;\r\n\r\nword.split(\u0027\u0027).forEach((index, i ) =\u003E {\r\n if (vowels.includes(word[i])) {\r\n newWord \u002B= word.slice(i, i\u002B1) \u002B \u0027b\u0027 \u002B word[i];\r\n } else {\r\n newWord \u002B= word.slice(i, i\u002B1);\r\n }\r\n});\r\n\r\nconsole.log(newWord);","IsDeferred":false},{"Name":"regex","Code":"const word = \u0022Hello World\u0022;\r\n\r\nreturn word.replace(/[aeiou]/gi, (match) =\u003E match \u002B \u0027b\u0027 \u002B match);","IsDeferred":false}]}