_updateCurrencySymbolByCurrencyCode(currencyCode) {
    try {
      Object.keys(this.countriesData).forEach((key) => {
        if (this.countriesData[key]["primaryCurrencyCode"] == currencyCode) {
          this.symbol = this.countriesData[key]["primaryCurrencySymbol"];
        }
      });
    } catch (err) {
      this.symbol = "";
    }
  }
//for example currencyCode "USD" wil give currency symbol "$"
for example currencyCode "USD" wil give currency symbol "$"
for example currencyCode " USD " wil give currency symbol " $ "
_updateCurrencySymbolByCurrencyCode(currencyCode) {
    try {
      Object.keys(this.countriesData).forEach((key) => {
        if (this.countriesData[key]["primaryCurrencyCode"] == currencyCode) {
          this.symbol = this.countriesData[key]["primaryCurrencySymbol"];
        }
      });
    } catch (err) {
      this.symbol = "";
    }
  }
_updateCurrencySymbolByCurrencyCode ( currencyCode ) { try { Object . keys ( this . countriesData ) . forEach ( ( key ) => { if ( this . countriesData [ key ] [ "primaryCurrencyCode" ] == currencyCode ) { this . symbol = this . countriesData [ key ] [ "primaryCurrencySymbol" ] ; } } ) ; } catch ( err ) { this . symbol = "" ; } }
for example currencyCode "USD" wil give currency symbol "$"
for example currencyCode " USD " wil give currency symbol " $ "