API не возвращает JSON. Возвращает это:
"42 is the number of US gallons in a barrel of oil."
JSON будет выглядеть так:
{ "message": "42 is the number of US gallons in a barrel of oil." }
Вам нужно использовать response.text
для извлечения чистого текста ответа.
let x = fetch("http://numbersapi.com/42");
x.then(response => response.text())