Skip to content

Instantly share code, notes, and snippets.

@dance2die dance2die/zipDemo.js
Created Mar 11, 2018

Embed
What would you like to do?
function zipDemo(orders) {
const orderNumbersInText = ["One", "Two", "Three", "Four", "Five"];
orders
.map((order, index) => {
const text = orderNumbersInText[index];
return `Quantity of Order ${text}: ${order.quantity}`;
})
.forEach(sentence => WriteLine(sentence));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.