We can improve Tabby using the Array spread operator. (This is a minor & optional change).
// Change thisconst tabs = Array.from(tabby.querySelectorAll('.tab'))const tabContents = Array.from(tabby.querySelectorAll('.tab-content'))
// To thisconst tabs = [...tabby.querySelectorAll('.tab')]const tabContents = [...tabby.querySelectorAll('.tab-content')]Welcome! Unfortunately, you don’t have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson