Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created March 11, 2018 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/36a0b9f37a5d98d908b886522597972a to your computer and use it in GitHub Desktop.
Save dance2die/36a0b9f37a5d98d908b886522597972a to your computer and use it in GitHub Desktop.
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