learn-co-curriculum / phase-1-mapping-arrays-readme Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
https://learning.flatironschool.com/courses/5185/pages/mapping-arrays?module_item_id=396141
In the "Callback city" section we say:
We want to transform values from the array,
This makes me cringe a little. :-(
It implies that we are going to change the values - bordering on manipulating the original values of the array.
No response
Maybe soften this:
"We want to transform values from the array, ..."
to something like this?:
"We want to do something with each value from the array, ..."
Language of "each value" highlights how every element from the map will be an input.
https://learning.flatironschool.com/courses/5185/pages/mapping-arrays?module_item_id=396141
Technically, this phrase makes grammatical sense:
Let's accept that callback function as the second argument to map():
However, as a reader, my initial reading of those first three words was as:
Let's accept that the sky is blue.
Given this orientation, I had to backup, reread, reconsider, reprocess - all of that, in order to make sense of the sentence.
That's not useful work/mental processing. Can this line be simplified?
No response
Instead of:
Let's accept that callback function as the second argument to map():
How about:
So, let's use that callback function as the second argument to map():
or:
So, let's take that callback function as the second argument to map():
https://learning.flatironschool.com/courses/4549/pages/mapping-arrays?module_item_id=317835
const newEngineers = map(oldAccounts, function (account) {
should be
const newEngineers = oldAccounts.map(function (account) {
No response
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.