Pergunta de entrevista da empresa DigiValet

How would you select an element on a website using JavaScript?