I've struggled to find the documentation for the add() method that's called to add Options to input elements.
I've looked on MDN here, but can't see it there or in the parent interfaces either. I was just wondering where I could find it, or what the 2nd parameter was for.
Eg:
const select = document.querySelector('.select-element');
const option = new Option(name, id);
select.add(option, undefined);