Get help on our Front End Development projects.
codernewby sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2448 | @darrenfj |http://www.freecodecamp.org/darrenfj
$('.btn').on('click'....
.
btn
class="btn"
$('button').on('click'....
btn1
#box1btn1
id="box1btn1"
data
function diffArray(arr1, arr2) { var newArr = arr1.concat(arr2); newArr.filter(function(index) { if (!arr1.includes(index) || !arr2.includes(index)) { return newArr; } }); console.log(newArr); } diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5]);
.filter()
oh lol...
newArr = newArr.filter(....
this worked
lolativiwe_twitter sends brownie points to @ezioda004 :sparkles: :thumbsup: :sparkles: