We use a package called dotenv to protect variables like username, passwords and api keys on the backend in express, and also on the frontend with React to save things that might be repeated like the website URL in api calls.
Posted on Feb. 17, 2019 by
JamieA logger middleware for node/express will save data about every api request and log it so that developers can see exactly what happened with the request.
Posted on Feb. 17, 2019 by
JamieA function that returns the result of another function is using function composition.
Posted on Jan. 15, 2019 by
JamiePromises help JS appear to run code asynchronously. JS runs synchronously on one thread. A promise runs the code, but says continue running other code and I will let you know when this code returns data. fetch() is just a promise that gets an api. async/await is syntactic sugar for running promises.
Posted on Jan. 14, 2019 by
JamieJavascript was not built to be used as an Object Oriented Programming language. So at first, using OOP in JS was weird and awkward. But it has come a long way and its evolution is explained in detail here.
Posted on Jan. 9, 2019 by
JamieTop 20 questions most JS developers get stumped on. They are pretty basic and if you are a JS developer you should know most of them off the top of your head. But you may need a refresher on a few.
Posted on Jan. 3, 2019 by
Jamie