Clipboard interview question

Write a JS script to fetch some data using a REST API.