OA. free
Free
Nopal Securities Core Computer Science Core Computer Science Medium

Which of the following libraries or APIs can be used to make HTTP requests in modern Node.js?

Nopal Securities technical mcq question, verified with a worked answer. Free to practise - no sign-up.

Which of the following libraries or APIs can be used to make HTTP requests in modern Node.js?

Choose one option.
Show answer & explanation
Answer: A. Both axios and native fetch

Modern Node.js (v18+) includes global native fetch, and third-party libraries like axios are widely used.

Step-by-step Derivation:
Step 1: Modern Node provides global fetch API.
Step 2: Axios is also universally supported.
Step 3: Both can be used.