var list1 = ["pms","lms","nms","qsf"];
var list2 = ["pms","SSS","lms"];
How do I compare list2 with list1 of arrays items and throw an error if any one of list2 item doesn't match with list1.
I know it may be a simple question but I am from different background and not so good in Javascript.