{"ScriptPreparationCode":null,"TestCases":[{"Name":"Without aux","Code":"var cnpj = \u002212345678901234\u0022;\r\nvar length = 12;\r\nvar sum = 0;\r\nvar digit = 0;\r\nvar aux = 5;\r\nfor (var i = 0; i \u003C length; i\u002B\u002B) {\r\n\tsum \u002B= cnpj.charAt(i) * aux--;\r\n\tif (aux \u003C 2) {\r\n\t\taux = 9;\r\n\t}\r\n}\r\ndigit = sum % 11 \u003C 2 ? 0 : 11 - sum % 11;","IsDeferred":false},{"Name":"With aux","Code":"var cnpj = \u002212345678901234\u0022;\r\nvar length = 12;\r\nvar sum = 0;\r\nvar digit = 0;\r\nvar aux = 5;\r\nfor (var i = 0; i \u003C length; i\u002B\u002B) {\r\n\tsum \u002B= cnpj.charAt(i) * aux--;\r\n\tif (aux \u003C 2) {\r\n\t\taux = 9;\r\n\t}\r\n}\r\naux = sum % 11;\r\ndigit = aux \u003C 2 ? 0 : 11 - aux;","IsDeferred":false}]}