Skip to content

Conversation

@nobelisab
Copy link

const updateInvestments = (update) => {
let main = document.querySelector("main"); // main is an element
main.innerHTML = markup(investments);
console.info(update);
};

const investments = {
name: "Apple",
risklevel: "Moderate",
price: 32,
ticker: 'AAPL',
type: 'ETF';
};

const client = {
name: "",
address: "",
email: "",
phone: "";
};

const advisor = {
name: "Elisabeth Noble",
phone: "904-352-6609",
email: "[email protected]";
};

const ETFholdings = {
stock1: "",
stock2: "",
bond1: "",
bond2: "";
};

const markup = (investments) => {
return `

${investments.name}

  • Ticker: ${investments.ticker}
  • Risk: ${investments.risk}
  • Price: ${investments.price}
  • Type: ${investments.type}
`; };

const main = document.createElement("main");
main.innerHTML = markup(backpack);
document.body.appendChild(main);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant