Working With Array Challenge 1
<script> const checkDogs = function(arr1, arr2){ const arr1Shallow = arr1.slice(); arr1Shallow.splice(0,1); arr1Shallow.splice(-2); const dogs = arr1Shallow.concat(arr2); dogs.forEach(function(age, i){ const type = age >= 3 ? `Dog number ${i+1} is an…