Use fetching API to get image data, creating HTML img element programmatically, setting its src to received API image URL, and appending to DOM for display.
Nowadays, Javascript is getting more and more popular particularly in web application development. Once it only supported front end, but now it made possible to brace backend, hybrid apps, embedded devices and many more.