title: Compare Two Arrays in Javascript to Find Specific Values
body: <p>I have two arrays. One of the arrays contains all the values needed, and the other array contains specific values needed. Using javascript, I have to figure out a way to print the specific values (the ones that appear in both arrays) to the console with a label &quot;menuitem&quot; and the other values printed to the console without the label. For example:</p>
  <p>If these are my arrays <br>
  array1 = [apple, banana, pear, strawberry] <br>
  array2 = [apple, banana]</p>
  <p>The console would have to display:<br>
  menuitem: apple <br>
  menuitem: banana<br>
  pear <br>
  strawberry</p>
  <p>Any assistance would be greatly appreciated!</p>