use the extension operator to check the values in the two arrays of the array, why does the return always come out with one? Please point to
A [{correct_answer: "01100"} {correct_answer: "11001"}, {correct_answer: "11100"}]
B {exam_problem_id: "01110"}
.
A.forEach(function (i) {
//
var correct_answer = i.correct_answer.split(""),
arr_answwer = B[i.exam_problem_id].split("")
if (i) {
//
console.log(arr_correct_answer(...correct_answer, ...arr_answwer))
}
})
//
arr_correct_answer(x, y) {
let fraction = 0
if ((x === "1")===(y==="1")) {
console.log(123)
}
}