Useful JavaScript features
We could (it’s optional) use the Array spread operator:
const tabs = Array.from(tabby.querySelectorAll('.tab'));const tabsContents = Array.from(tabby.querySelectorAll('.tab-content'));
// using the array spread operator:const tabs = [...tabby.querySelectorAll('.tab')];const tabsContents = [...tabby.querySelectorAll('.tab-content')];