A JavaScript program to predict the nationality of a name

2 years ago
10

This JavaScript program example shows getting information from an external API source using JavaScript Fetch API and transfering the information to an HTML page via JavaScript.

This JavaScript program examle also includes.
Dynamically generating HTML elements: document.createElement(..
Adding dynamic elements to web pages: element.append(.. or .appendChild(..
Adding click event to an HTML button: element.onclick = findName;
Running a function using HTML button: function findName() { ...

And also in this javascript program, we can see how we convert a country code to a country name.

And more...

Thanks for watching.

Loading comments...