does the order of numbers in the answer matter.
i.e must it be [1,3,5] or could it be [5,1,3]
0I am hope it does then I would look at just concatenating the numbers into a single answer..
i.e [1,3,5] goes concatenated to 135, which would be easier to compare.
Like this.
var vStepAnswer = [2 , 4, 0].join("") /// mock of the step feed back
var wStepAnswer = [3,5 ,1].join("") /// mock of the step feed back
var xStepAnswer = [ 1,3,6].join("") /// mock of the step feed back
var stepKeysAnswers = [['vAnswer',vStepAnswer,"E"],['wAnswer',wStepAnswer,"F"],['xAnswer',xStepAnswer,"D"]]// we put the feed back answers in arrays with the correct answer key name.
var correctAnswers = {vAnswer:["240"],wAnswer:["351"],xAnswer:[ "136"] } //-- all correct answers