https://school.programmers.co.kr/learn/courses/30/lessons/76501
function solution(absolutes, signs) {
const arr = [];
for (let i = 0; i<absolutes.length; i++) {
if (!signs[i]) {
arr.push(Number('-' + absolutes[i]))
}else {
arr.push(absolutes[i])
}
}
return arr.reduce((acc,cur) => acc+cur)
}