Home:ALL Converter>how to call a function inside another function

how to call a function inside another function

Ask Time:2019-02-14T10:02:50         Author:prince

Json Formatter

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 = () {};

Author:prince,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/54682192/how-to-call-a-function-inside-another-function
yy