I'm trying to call a function inside another function in javascript, actually trying to call populateCurrencies()
inside startApp()
. What am I doing wrong?
const startApp = () => {
const populateCurrencies = ();
function populateCurrencies() {
alert(return this.option.value + " " + this.option.textContent);
}
const startApp = () {};