{"ScriptPreparationCode":null,"TestCases":[{"Name":"for with if","Code":"var j = \u0022MSKU947765\u0022;\r\nvar s = 0;\r\nvar r = [1,2,4,8,16,32,64,128,256,512];\r\nfor (var e=0;e\u003C10;e\u002B\u002B) {\r\n\tif (e\u003C4) {\r\n\t\tvar c = j.charCodeAt(e)-55;\r\n\t\ts\u002B=(Math.floor(c/10.2)\u002Bc)*r[e];\r\n\t} else {\r\n\t\ts\u002B=Number(j.charAt(e))*r[e];\r\n\t};\r\n};\r\nvar d = s % 11 % 10;\r\nreturn d;","IsDeferred":false},{"Name":"2x for","Code":"var j = \u0022MSKU947765\u0022;\r\nvar s = 0;\r\nvar r = [1,2,4,8,16,32,64,128,256,512];\r\nfor (var e=0;e\u003C4;e\u002B\u002B) {\r\n\tvar c = j.charCodeAt(e)-55;\r\n\ts\u002B=(Math.floor(c/10.2)\u002Bc)*r[e];\r\n};\r\nfor (var f=0;f\u003C6;f\u002B\u002B){\r\n\ts\u002B=Number(j.charAt(e))*r[e];\r\n};\r\nvar d = s % 11 % 10;\r\nreturn d;","IsDeferred":false},{"Name":"2x for charcode-48","Code":"var j = \u0022MSKU947765\u0022;\r\nvar s = 0;\r\nvar r = [1,2,4,8,16,32,64,128,256,512];\r\nfor (var e=0;e\u003C4;e\u002B\u002B) {\r\n\tvar c = j.charCodeAt(e)-55;\r\n\ts\u002B=(Math.floor(c/10.2)\u002Bc)*r[e];\r\n};\r\nfor (var f=0;f\u003C6;f\u002B\u002B){\r\n\ts\u002B=(j.charCodeAt(e)-48)*r[e];\r\n};\r\nvar d = s % 11 % 10;\r\nreturn d;","IsDeferred":false}]}