How to retrieve the value of the HTML <a> tag using Vanilla Javascript
<table style="width:100%">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td><a>Jill</a></td>
<td><a>Sam</a></td>
<td><a>10</a></td>
</tr>
<tr>
<td><a>Eve</a></td>
<td><a>Jeffreson</a></td>
<td><a>55</a></td>
</tr>
</table>
When the user clicks on the tag, I would like to retrieve the value of the tag so that I know which one was clicked on using JS
Here is what I tried: var list = document.getElementsByTagName("a");