Getting of element by id in JavaScript

getElementById
Задание 1

Given the element #elem:

html<div id="elem"></div>

Get this element using the getElementById method and set some text to it.