.reduce()

Definition + Syntax — MDN

/* 
Definition
:
The reduce() method executes a reducer function (that you provide) on each element of the array, resulting in single output value.
*/
// Syntax:
arr.reduce(callback( accumulator, currentValue, [, index[, array]] )[, initialValue])

When to Use:

reduce() allows us to loop over values in an array and return a single output. At…

This will be a multi-part series covering simple components using Google’s Material-UI library with React. If there’s a topic you’d like to cover specifically, please leave a comment!

Material-UI logo

You’ve (maybe) done your research about different CSS libraries and stumbled across Google’s open-source project, Material-UI. As a TLDR, Material-UI is a library that allows you to reuse Google’s Material Design components. Material Design is essentially a front-end developer’s go-to for best design practices.

If you’re familiar with Bootstrap, you’ll…

With the development of diverse screen sizes, such as your phone or tablet, the concept of responsive web design started to gain traction. It approached web design by making the content adapt to various screen and window sizes on different devices.

Since screen sizes are always changing, it’s important for…

Laptop with VSCode open

You’ve done the pre-work, you aced the interview, and you’ve finally been accepted into a bootcamp program. Congratulations on the beginning of your journey! These next few months will not be easy, and oftentimes, not for the faint of heart.

You will need to work harder, study more, and take…

PWA vs Native (Photo from AppInstitute)

In the time of COVID-19, more and more people are spending time on their mobile and desktops. While we’re not technically allowed to go anywhere, there are still some of us who exercise, take public transit to work, etc.

In general, more people use their mobile devices — so it’s…

Flexbox and simple CSS

For many new developers, CSS seems like a very daunting task. However, honing this skill is incredibly important. Who would want to use a website that looks like it came from the late 90s?

90s CSS

Yeah, that’s not exactly aesthetically pleasing.

We have better tools now to make more visually appealing…

Tiffany Kanjanabout

Full stack web developer. Frontend and design enthusiast. Avid rock climber and amateur photographer.

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