The prepend method for inserting elements in jQuery
jQuery provides 4 methods for inserting elements: append, prepend, after, before.
The prepend method allows you to add text to the beginning of elements. For example, let's say we have a paragraph:
<p>text</p>
We use the prepend method, specifying the text we need inside the tags:
$('p').prepend('<b>!!!</b>');
HTML the code will look like this:
<p><b>!!!</b>text</p>
Inside each h2, insert '!' at the beginning.