Skip to content

Instantly share code, notes, and snippets.

@adamgarcia4
Last active April 18, 2023 22:08
Show Gist options
  • Save adamgarcia4/416d98cc8e9895401ed0c62319e30fd2 to your computer and use it in GitHub Desktop.
Save adamgarcia4/416d98cc8e9895401ed0c62319e30fd2 to your computer and use it in GitHub Desktop.
// Write an application that tells us which ticker has a greater open price
const getExpensiveStock = async () => {
console.log("============ START ===========")
// Problem Decomposition
// 1. Define Names of Stocks to pull
const ticker1 = undefined
const formattedTicker1 = ticker1
const ticker2 = undefined
const formattedTicker2 = ticker2
// 2. Pull the stock information from the API
const ticker1OpenPrice = undefined
const ticker2OpenPrice = undefined
// 3. Display Retrieved Prices
// 4. Compare Stocks and Output Result
console.log("============ END ===========")
}
getExpensiveStock()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment