how to check if clicked target is the same as currentTarget code example
Example: javascript difference between target and currenttarget
target = The element that triggered event.
currentTarget = The element that has the event listener.
target = The element that triggered event.
currentTarget = The element that has the event listener.