Pregunta de entrevista de Hostelworld Group

How do you get the value of a text field using javascript