Pls I want to be able to add the currencies dynamically. var data1= 'USD'; var data2= 'EUR'; console.log(convert.data1.data2(1));