I am more or less a newby and hobby coder. I am currently working on a project where I want the following to happen:
If a user clicks on a certain word on a website, I want Javascript (pref. Ajax) to fetch the word and e.g. spit it out in the console.
Does Ajax offer something simmilar or how would you build that in JS?