Simple way to make JS API request?

Sometime ago I had built a small project website with Udacity that made an API request to a site and populated my site with the info.

The way I remember, we made a seperate JS file that acted as the “server” and would make a REST API request. It would then pass the data it retrieved and populate the website. It was a lot of code and functions. This was about a year ago,
however it seems JS has some newer features that can make an API call or there seems to be shorter and quicker ways to make an API call?

I never really wrapped my head around the concept during the Udacity time, so Im wondering if anybody can link me or share some info on how to make a simple api request?

Preferably more modern methods that relate to JS.
Thank you for your time!

Hi @vickyV !
This post hasn’t been active for 6 months.
Please participate in newer active posts.