I'm trying to compare multiple entries in 2 different arrays.
I'm able to do it but only if I compare each entry individually, this isn't a problem when I'm just comparing a few entries. However, this is going to be for a larger project so I need a better way of doing it.
My current way is like this:
Each element of the user array is compared against the answer array, but only one by one. I've tried doing it in a for loop, but this then doesn't to work it only looks at the last element.
a sample of the project is here:
surely there must be a more elegant way of doing this... been trying all day and it's driving me mad!!
thanks for any help