One foot in front of the other.

Troy Meeker
3 min readJul 9, 2021

As an avid runner, and someone who has completed several marathons and trail ultramarathons (a race farther than the 26.2 mile marathon) the hardest parts of any training run is often putting your shoes on, turning the doorknob and getting out the door. After the first mile, often the body relaxes, and feels like it can run and run and run. Since getting started with the first few days at Flatiron I think the feeling is quite similar. The decision to invest in my education and attend Flatiron was a big step, but undoubtedly an exciting one.

As someone who is extremely introverted, something that I have struggled with in the past is reaching out to someone when I am in need of help. Learning to code has quickly taught me that I will not be able to get far in this industry with that mindset, and to not feel embarrassed, or dumb when I need to ask a clarifying question, or just get a problem explained in a different way.

After being unsatisfied and unfulfilled with previous jobs and paths, I chose to pursue a life change and I am putting in the work to reach my goals and start a new career.

“United we stand, Divided we fall” - Aesop

By using my resources and engaging with the community of software developers in the making, I will reach my goals, but I know that I will not be able to do it alone.

Enough about me, let’s learn a little!

Arrays are one of the most common parts of Javascript that programmers use, and Javascript has many built in ‘methods’ that Javascript can use to to change parts of them, identify and sort, and even filter them. One Javascript method that I have learned that I found particularly interesting and something that will undoubtedly prove to be useful is the .filter() method.

The Filter method finds and separates (filters) array items to fit your desired qualifications.

Have you ever been to a Garage sale and seen something really cool, but you only have say $30? No? Ok, well just picture it for this following example!

Here we can see our Array of objects that represent items that we may find at a garage sale, and their associated prices, but remember we only have $30!

Lets find out how to filter the items to narrow down the items we can purchase! The .filter() method!

After we set a new variable to the filter method (line 10), that filter method takes a function as an argument, and returns a true or false statement that clarifies the items we want to filter (price ≤$30).

After that, all we have to do is log the items to the console, and voila! We have the items that we can buy with our $30.

There we go! On the right side, in the console, we have now filtered all the items that are ≤ $30 and we know what we can shop for.

When I am struggling through a topic or lab, I am sure to research it on the side to learn more about it. Also explaining it to someone or teaching the subject has really helped me learn the topic so I can use it when it is needed.

Keep working hard!

-One foot in front of the other-

--

--