Update some browser snippet descriptions

This commit is contained in:
Angelos Chalaris
2020-03-06 09:57:40 +02:00
parent 6ae9cd2fcb
commit 6f77474128
5 changed files with 16 additions and 12 deletions

View File

@ -12,5 +12,6 @@ const insertBefore = (el, htmlString) => el.insertAdjacentHTML('beforebegin', ht
```
```js
insertBefore(document.getElementById('myId'), '<p>before</p>'); // <p>before</p> <div id="myId">...</div>
```
insertBefore(document.getElementById('myId'), '<p>before</p>');
// <p>before</p> <div id="myId">...</div>
```