{"ScriptPreparationCode":null,"TestCases":[{"Name":"regex","Code":"function removeCharFrom(str, char) {\r\n const regex = new RegExp(\u0060${char}\u0060, \u0022gi\u0022);\r\n return str.replace(regex, \u0022\u0022);\r\n}\r\nconsole.log(removeCharFrom(\u0022ElddzeroD WebDD ddSchool\u0022, \u0022d\u0022));","IsDeferred":false},{"Name":"filter","Code":"function removeCharFrom(str, char) {\r\n return str\r\n .split(\u0022\u0022)\r\n .filter((c) =\u003E c != char.toLowerCase() \u0026\u0026 c != char.toUpperCase())\r\n .join(\u0022\u0022);\r\n}\r\nconsole.log(removeCharFrom(\u0022ElddzeroD WebDD ddSchool\u0022, \u0022d\u0022));","IsDeferred":false}]}