Company Overview (JSON)

Home

Dataset Information

For this exercise, we will use data from the AlphaVantage API. Specifically we will use the "Company Overview" endpoint to fetch financial information about a given company. Consult the API documentation to learn more.

Setup

First obtain an AlphaVantage API Key, and supply it when prompted.

Part 1

Write JavaScript code to answer the questions below. Log each of the answers to the console.

  1. Define a function called lookupCompany. It should:
  2. Invoke the function once when the page initially loads (no need for an event listener).
  3. Add an event listener to also invoke the function whenever the "Lookup" button is clicked.

Part 2

Write JavaScript code to answer the questions below. Display the answers on the page in the designated areas.

  1. Revisit the lookupCompany function from Part 1. It should also:

Display

Name: TODO

Description: TODO

Website: TODO