Hey, guys, unexperienced coder here. As a part of a side course I am building the currency exchange app with exchange rates updates via freeexchange. And I stumbled upon two questions:
- I have a mistake saying “Uncaught SyntaxError: Unexpected token :” when I try to console.log received json.
- I have no idea what to do next. I mean, I console.log(json) and then what? How do I extract necessary data out of this response? Do I need to do it?
Converter itself - https://pastebin.com/p69ARTEi
Money.js (necessary) - https://pastebin.com/EkX2q9cm
Codepen/Plunker won’t do because they don’t allow to do https to http requests.