This is an important message requiring you to make a choice if you're based in the EU.
You can either loop through the arrays or convert them to string and then compare. This tutorial provides several fast methods of comparing two arrays.
There are several methods of converting a string into a number: parseInt() #; parseFloat() #, Number() #, etc. See examples.
How to create Popup Login, Contact and other forms on your website. Set also multiple Popup Forms in one page. Learn all step by step with examples.