Test element in JavaScript

Let's create a test element to study various metrics in the following lessons. We design this element so that it has borders, padding, and scrollbars:

html<div id="elem">
  some long text
</div>
css#elem {
  width: 300px;
  height: 150px;
  margin: 50px auto;
  padding: 25px;
  background: #CFF5BF;
  border: 25px solid #F0D7A1;
  overflow: auto;
  text-align: justify;
}

Результат:

Let's get a reference to this element into a variable:

javascriptlet elem = document.querySelector('#elem');
Задание 1

Make a similar test element for yourself. Check on it the properties that will be studied in the following lessons.