Created
March 11, 2018 02:16
-
-
Save dance2die/36a0b9f37a5d98d908b886522597972a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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