Create getData.js function to consume an API
Create getData.js function to consume an API