How to check if a child element is present in a parent element in Javascript?
Originally posted here!
Conside this HTML,
<div class="articles">
<h1 class="header">A Big Header</h1>
<p class="para">Hey, Its A small paragraph</p>
</div>
How can we check if the p tag is a child of the div tag? ๐ค Well, there's a way for tha...
melvingeorge-me.hashnode.dev2 min read