Monday, August 23, 2021

Simple Code

Finally got the simplest code that picks up data and converts it to json.

It is a new function -fetch - and allows one to specify what to do with the

data later...





(The console displaying the data is 'developer tools' on the Edge. browser.)

                                                       *     *     *

Anf then, when you're rested, everything works. Got the code from the tuto to

work with a small adjustment. I am using a different source from the one illustrated

and had to define rate using 'conversion_rate'.







*     *     *
Found a fully fonctionning currency converter that lets one choose both the

base and new currency (from CodePen):

                                       





No comments: