How to get value at highest index in a array from the values of another array with javascript programming
<p>I have 2 set of array </p>

<pre><code>var A = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"];
var B = ["B", "J", "A", "C", "G"];
</code></pre>

<p>now I have to a value from <code>var B</code> which is at highest index in <code>var A</code>, it is <code>J</code></p>

<p>I have to find out <code>J</code> in <code>var B</code> by JavaScript programming </p>

<p>Thanks in advance </p>