Write the simplest GET request to URL - http://myapi.com/ which stores the apiUrl variable. There's no need to handle the response, thus, don't include a callback function in the request.
Sending requests
Get request
Report a typo
Enter a short text
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.