Curl Command in Javascript

And how will the backend make the request? With Curl?

@Dist said " It’s just a HTTP request, so you can use any HTTP library in JS." So its possible with JS? But how? How can I authenticate with JS?