The outputs read-only property of the MIDIAccess interface provides access to any available MIDI output ports.
outputs
MDN Reference