{"ScriptPreparationCode":null,"TestCases":[{"Name":"caso 1","Code":"let a = [10,2];\r\nfunction concatSumA(a) {\r\n let result = 0;\r\n const arrLength = a.length;\r\n\r\n a.forEach(numA =\u003E {\r\n a.forEach(numB =\u003E {\r\n result \u002B= (numA * Math.pow(10, Math.log(numB) * Math.LOG10E \u002B 1 | 0)) \u002B numB;\r\n });\r\n });\r\n return result;\r\n}\r\nconcatSumA(a);","IsDeferred":false},{"Name":"caso nacho","Code":"let a = [10,2];\r\nfunction concatSumA(a) {\r\n let result = 0; \r\n for(let i = 0; i \u003C a.length; i\u002B\u002B) {\r\n for(let j=0; j \u003C a.length; j\u002B\u002B) {\r\n result \u002B= parseInt(a[i].toString()\u002B a[j].toString(), 10);\r\n }\r\n }\r\n console.log(result);\r\n}\r\nconcatSumA(a);","IsDeferred":false},{"Name":"caso pablo","Code":"let a = [10,2];\r\nfunction concatSumB(a) {\r\n let result = 0;\r\n const arrLength = a.length;\r\n\r\n a.forEach(elementA =\u003E {\r\n a.forEach(elementB =\u003E {\r\n result \u002B= parseInt([elementA, elementB].join(\u0027\u0027), 10);\r\n });\r\n });\r\n\r\n return result;\r\n}\r\n\r\nconcatSumB(a);","IsDeferred":false},{"Name":"caso anto","Code":"let a = [10,2];\r\nfunction concatSumA(array) {\r\nlet result = [].concat(...array.map(\r\n (v, i) =\u003E array.map( w =\u003E v.toString() \u002B w ))\r\n );\r\n\r\nreturn result.reduce((a, b) =\u003E parseInt(a) \u002B parseInt(b));\r\n}\r\nconcatSumA(a);","IsDeferred":false}]}