Pregunta de entrevista de DigiValet

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