js docs cheat sheet code example
Example 1: javascript cheat sheet
Best Cheat Sheet:
https://websitesetup.org/wp-content/uploads/2020/09/Javascript-Cheat-Sheet.pdf
Example 2: dom javascript cheat sheet
document.getElementById('someid');
document.getElementsByClassName('someclass');
document.getElementsByTagName('LI');
document.querySelector('.someclass');
document.querySelectorAll('div.note, div.alert');
Example 3: dom javascript cheat sheet
<div id='box1'>
<p>Some example text</p>
</div>
<div id='box2'>
<p>Some example text</p>
</div>