{"ScriptPreparationCode":"var input_string = \u0022passw)odas4gsdfsdf\u0022;\r\nconst regex_test = new RegExp(\u0027(?=.*[0-9])\u0027);\r\n","TestCases":[{"Name":"regex","Code":"let isPasswordValid = false;\r\nisPasswordValid = regex_test.test(input_string);","IsDeferred":false},{"Name":"loop","Code":"let isPasswordValid = false;\r\nfor (let i = 0; i \u003C input_string.length; i\u002B\u002B)\r\n{\r\n\tlet code = input_string.charCodeAt(i);\r\n \tif (code \u003E= 48 \u0026\u0026 code \u003C= 57)\r\n {\r\n isPasswordValid = true;\r\n break;\r\n }\r\n}","IsDeferred":false}]}