var string = ")odas4gsdfsdfpassw";
{"ScriptPreparationCode":"var string = \u0022)odas4gsdfsdfpassw\u0022;","TestCases":[{"Name":"RegEx","Code":"let isPasswordValid = false;\r\nconst number = new RegExp(\u0027(?=.*[0-9])\u0027);\r\nisPasswordValid = number.test(string);","IsDeferred":false},{"Name":"For Loop","Code":"let isPasswordValid = false;\r\nfor (let i = 0; i \u003C string.length; i\u002B\u002B)\r\n{\r\n\tlet code = 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}]}