Injecting Data Into an Array using SpliceWhen you use Array.push(), you're only appending to the end of the array. Sometimes, you'll want to insert data into the middle of the array…