Working with Sample API
I'm workig with a sample RandomUser API. When running this code, it returns this object (see img #1). I'm attempting to retreive the data within 'results'. Creating a variable like
let result = data.result returns (see img #2). But, when I try to log the gender, but calling console.log(result.gender), I get undefined. How do I properly access the results data?


