Skip to content
Advertisement

Loop two arrays without duplicate values from the first array

I’m not 100% sure about the title (something is missing), but I’m 100% sure what output I need.

JavaScript

You can run the code here: https://extendsclass.com/php-bin/3baf302

Advertisement

Answer

With a for loop, you need a change in your code:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement