I'm currently studying JavaScript and working on a basic project that involves generating random strings of different lengths.
If you're interested, feel free to check out my codepen code [here][1]. My question revolves around the functionality of displaying two sample countries to the user. Once a country is selected by the user, I want to be able to trigger a specific function. How can I achieve this?
`[1]: https://codepen.io/yared/project/editor/AaoGBP/#0`