The things I want to check:
Scenario 1:
Array A = [1, 2]
Array B = [1, 2, 3, 4]
-> Give the answer true
Scenario 2:
Array A = [1, 2, 5]
Array B = [1, 2, 3, 4]
-> Give answer false
Scenario 3:
Array A = [5]
Array B = [1, 2, 3, 4]
-> Give answer false
I understand it may seem/be cocky to type basically a request for some code and expect someone to write it up, but I've spent 15 hours trying to either learn enough about arrays to do it myself, and also tried different solutions that were kind of close to what I asked on stackoverflow and tweaking them, but I just can't make a system that works by answering question 1) and 2) the way I want
A.some((x) => B.includes(x))
A.some((x) => !B.includes(x))