Watch videos for JavaScript Coding Question
3. implement Array.prototype.flat()