JavaScript fetch API - Why does response.json() return a promise object (instead of JSON)? [duplicate]
because response.json() returns another promise (which is within your function body)
because response.json() returns another promise (which is within your function body)