var string = "passw)odas4gsdfsdf";
{"ScriptPreparationCode":"var string = \u0022passw)odas4gsdfsdf\u0022;","TestCases":[{"Name":"For Loop","Code":"const FORBIDDEN_CHARACTERS = [\u0060\u003C\u0060, \u0060\u003E\u0060, \u0060\u0026\u0060, \u0060$\u0060];\r\nfor (const character of FORBIDDEN_CHARACTERS) {\r\n const position = string.indexOf(character);\r\n if (position !== -1) {\r\n return INVALID;\r\n }\r\n }","IsDeferred":false},{"Name":"RegEx","Code":"const FORBIDDEN_CHARACTERS = [\u0060\u003C\u0060, \u0060\u003E\u0060, \u0060\u0026\u0060, \u0060$\u0060];\r\nconst forbiddenRegex = new RegExp(\u0060[${FORBIDDEN_CHARACTERS.join(\u0027\u0027)}]\u0060);\r\nconst match = forbiddenRegex.exec(string);\r\nif (match) {\r\n return INVALID;\r\n}","IsDeferred":false}]}