What do you do when you have two arrays but only need one? You concat them:
var words = [“cockapoo”, “beefalo”] var moreWords = [“pegacorn”, “schnoodle”] var allWeirdWords = words.concat(moreWords) // [ “cockapoo”, “beefalo”, “pegacorn”, “schnoodle” ]
— Sorry to interrupt this program! 📺
Given the current situation with COVID-19, times are hard for most of us, but if you're stuck at home you can perhaps use that extra time to work on your front-end skills. Wes put all of his courses at 50% off to help out with the current challenge we're facing.
Plus, these are affiliate links, so if you purchase a course you help Alligator.io continue to exist at the same time! 🙏
Remember! The array before the concat() method will be placed before the array inside the parenthesis once they are combined.