Both onclick and addEventListener javascript function will work but sometimes it creates problem for developers to understand ...