That's called destructuring assignment. "a" probably is an object which has the hostname property so that assignment extracts hostname.
I'm just writin about this 😅. Hopefully that'll help you.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.