覚えたこと
e.shiftKey, ctrlKey, altKey
checkbox.addEventListener('click', function(e){
console.log(e.shiftKey)
)
thisの使い方、A = !Aとか
function handleCheck(e){
if(e.shiftKey && this.checked){
checkboxes.forEach(checkbox => {
if((checkbox === this || checkbox === lastChecked) && lastChecked){
inBetween = !inBetween;
}
if (inBetween){
checkbox.checked = true;
}
})
}
lastChecked = this;
}