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:


30 days of js day 4 - array cardio

Array Cardio

Being able to edit and arange data in js is super useful espically when dealing with external sources or internal. This challenge goes through the following methods.


Javascript: Print a String Backwards

  <script type="text/javascript">var string = "Hello World"console.log(string);var stringArray = string.replace(/\s+/g, '') // Regular expression to remove spaces,...