Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created September 26, 2022 19:46
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 johnlokerse/ab7bb0c7e0888cdc19b12c6588cef480 to your computer and use it in GitHub Desktop.
Save johnlokerse/ab7bb0c7e0888cdc19b12c6588cef480 to your computer and use it in GitHub Desktop.
output outputDiscount array = map(range(0, length(varGroceryStore)), item => {
productNumber: item
productName: varGroceryStore[item].productName
discountedPrice: 'The item ${varGroceryStore[item].productName} is on sale. Sale price: ${(varGroceryStore[item].productPrice / 2)}'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment