Write JavaScript code to parse and transform an API response.
Write a JavaScript function called `parseUsers` that takes an API response object with a `data` array of user objects (each with `id`, `first_name`, `last_name`, `email`, `status`) and returns an array of only active users, with `full_name` combining first and last name.
Your parseUsers function is called with this input, and its result is checked against the goal below.
{"data":[{"id":1,"first_name":"John","last_name":"Doe","email":"john@test.com","status":"active"},{"id":2,"first_name":"Jane","last_name":"Smith","email":"jane@test.com","status":"inactive"}]}Goal: [{"id":1,"full_name":"John Doe","email":"john@test.com"}]
Get personalized hints based on your current progress. Start with gentle hints and progress to more detailed ones.