Close interview question

Simple DOM manipulation question & another JS