can you explain which is better?
this
const select = document.querySelector('select');
let selectedValue = select.options[select.selectedIndex].value;
and this
let selectedValue = select.value;
and this
let selectedValue = e.target.value;