Retrieving Data using the Fetch API

Published May 27, 2019 in api , fetch , JavaScript - 1 Comment

Whether you are programming for something work-related or you are just hacking something together as a side project, eventually the situation comes up when you want to retrieve some data from a source and display the information on your web page. If the information isn’t coming from a database you own, most likely that information is being retrieved from an API. In this post, I am going to show you how to retrieve data from an API using the browsers Fetch API.

Continue reading…

Var, Let, and Const – The Three Variable Horsemen

Published October 15, 2018 in JavaScript , variables - 1 Comment

Variables are a vital piece of our JavaScript code.  They are so important in fact that JavaScript has given us THREE different ways to declare variables. Those three main ways are var, let, and const.  The oldest of which var has been around since the beginning.  It’s our other 2 declarations let and const that have arrived with es6.  Giving us new syntax to declare our variables also gave us more scenarios to take into account with using them. We’re going to dive into some of those differences in this post.

Continue reading…

Scopes in JavaScript – Now You See Me, Now You Don’t

Published January 13, 2018 in JavaScript - 0 Comments

If you’re just starting out writing code, you’ve probably ran into some situations where you have declared variables and sometimes they’re found and sometimes they’re not.  This can cause a good amount of confusion when trying to figure out what the problem in your application is.  Whether your variables are found or not depends on where you have defined your variable, this is called scope.

Continue reading…