cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Posts tagged array

Callback Functions

What's a callback function?

Technically the callback-using function is called a higher order function but I'm just going to use the former term because I think it's less confusing.

The term ...

For and against

Intermediate coding challenge

Destroy all for loops

You can do these challenges in pretty much any language which involves for loops (I used JavaScript). Can you do the following without using a...

Unique Arrays in ES2015

This past weekend, I was working on a little project while evaluating Vue.js and I came across a common problem that all of us end up having to deal with sooner or later, regardless of what...

Use Array.reduce to tranfom data structure

Array.reduce is really useful to tranform an array to another type of data.

  let arr1 = ['2017', '09', '06']let arr2 = arr1.reduce((a, b, i) => { if (a.length === 0) {...

Math.random() + arrays

.Math.random() + arrays

I was having trouble when generating a random thing because I couldn't get it's value. I used an if statement, but that didn't work. Here's my code:

...