Last active
August 6, 2018 01:34
-
-
Save kbk0125/05f0408566b816358071af8c1552a117 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let box1= ["juice", "sandwich", "chips", "yogurt"]; | |
let box2 = ["milk", "sandwich", "carrots", "chips"]; | |
let total = box1.concat(box2); | |
let answer = total.filter(function(item){ | |
let justArr1 = !box2.includes(item); | |
return justArr1; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment