If you’re new to React like me you probably have heard the term ‘components’ used a lot . Our friend, React Doc’s, does us the favor of providing a detailed definition of a React component. So what is a component?

In React, components are described as JavaScript functions that accept arbitrary inputs (called “props”) and return React elements describing what should appear on the screen. There are two types of components in React you will come across they are described as Functional and Class components. …


Loops in JavaScript are pretty handy , loops allow us execute a block of code a number of times. If you would like to iterate through an array and change the value of each element inside of the array you may want to use a loop. In JavaScript there are many loop types that we can use to make our lives easier, loops also work on objects as well.

So plainly, what is a loop right?

What is A Loop?

A loop lets you repeat an action many times.

This allows you to:

  • Go over a list of things & work with each individual…


Last week as I was hammering away at my rails project , everything was going well and as usual that tends to be when the code monster decides to loom over our hard working successful code with it’s new ideas (as if anyone asked) and features. Because I was feeling sooo confident I decided to listen to that monster, it spoke “How the heck are you going to be able to look up a patient on your index page? Do you reallllly wanna just scroll through all of it to find them? absurd! ”

I began to look at my…


Arrays hold a special place in my heart, they allow me to be lazy, what programmer doesn’t like an easier way to do something? Before we get into their methods let’s first understand what an array is.

An array is a data structure consisting of a collection of elements, each identified by at least one array index or key. Arrays also allow you to store multiple values in a single variable allowing your code to be more readable and maintainable. Arrays have methods which act like “super powers” granting an array different abilities once attached. …

THERESA CYRUS

Software Engineer | Coding Ninja

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