For this exercise, we will use a handful of CSV files that have been uploaded to the Internet. The CSV files contains historical stock data for a number of companies. There is a CSV file for each of the following symbols: AAPL, GOOGL, MSFT, NFLX, NVDA, and SPOT. The name of each CSV file follows a consistent format (e.g. "daily_adjusted_NFLX.csv" for NFLX). This data was originally obtained from the AlphaVantage API.
Write JavaScript code to answer the questions below. Log each of the answers to the console. NOTE: Format all prices as currency using a dollar sign and rounding to two decimal places. NOTE: Format all percentages with a percent sign and rounded to two decimals.
symbol.symbol variable from Question A,
and store it in a variable called requestUrl.requestUrl from Question B.Write JavaScript code to answer the questions below. Display the answers on the page in the designated areas. NOTE: when applicable, use the same currency and percent formatting as in Part 1.
span elements below,
display the stock symbol,
the earliest day's date and adjusted closing price,
the latest day's date and adjusted closing price,
and the overall percent change.
Symbol: TODO
Earliest: TODO
Latest: TODO
Percent Change: TODO