See that’s what I need. dummy it down for me
you have a number of things, and you divide them into groups of some other number, how many are left over at the end.
You have $10 and 25 cents.
You want to divide it up into $1 groupings.
That gives you ten $1 groupings, and 25c left over.
1025 % 100 equals 25
If the number divides equally, the calculation equals 0. So for example, if you want to know if a number is even, then % 2 will be 0 if it is:
2 % 2 equals 0
3 % 2 equals 1
That works for me. but i get:
ES6: Write Higher Order Arrow Functions
It’s time we see how powerful arrow functions are when processing data.
Arrow functions work really well with higher order functions, such as map() , filter() , and reduce() , that take other functions as arguments for processing collections of data.
Read the following code:
FBPosts.filter(function(post) {
return post.thumbnail !== null && post.shares > 100 && post.likes > 500;
})
We have written this with filter() to at least make it somewhat readable. Now compare it to the following code which uses arrow function syntax instead:
FBPosts.filter((post) => post.thumbnail !== null && post.shares > 100 && post.likes > 500)
This code is more succinct and accomplishes the same task with fewer lines of code.
Use arrow function syntax to compute the square of only the positive integers (decimal numbers are not integers) in the array realNumberArray and store the new array in the variable squaredIntegers .
It doesn’t even match up with our problem. Its like if I asked for directions to a party and you give me a map. That is great but as I walking away I see Its a map Of New York and I’m in China. They are both cities yes but it don’t help me to get to the party at all.