Learning to Code: Day 43 — Basic JavaScript Part 8

Understanding the Undefined Value when returned from a Function

Functions can include return statements but they don’t have to. By doing so, the code runs but returns as undefined.

-FreeCodeCamp

Assignment with a Returned Value

Using the assignment operator (=), we can store values. Therefore with this same thinking we can take a returned value and assign it to a variable.

-FreeCodeCamp

Queues

In Data Science (phoah we’re totally learning that! how exciting) a queue is an abstruct structure where items are kept in order. I don’t know about you but that’s right up my alley, thanks OCD. New items can be added to the back of the queue and old items are removed from the front of the queue. So, a queue works based on a first-in first-out (FIFO) principle.

-FreeCodeCamp

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store