How using javascript or jquery Add within div -a several DIVS?

How using javascript or jquery when you click on the Add button within the div -a several DIVS?
for example there is
<button class="click">Click</button>
<div class="main_div"> <div class="1_div">text1</div> </div>

via javascript you need to add this line
<div class="2_div"> + id + </div>
id - variable with the text and changing
July 2nd 19 at 14:26
3 answers
July 2nd 19 at 14:28
July 2nd 19 at 14:30
July 2nd 19 at 14:32
methods append, prepend

Find more questions by tags JavaScriptjQuery