Created
March 10, 2019 02:42
-
-
Save jack-guy/9fc379c3a8e4967614c0e4d5c390e059 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
const iceCreamFlavors = ['vanilla', 'chocolate', 'strawberry']; | |
const iceCreamPrices = ['$5.50', '$5.75', '$6.00']; | |
let iceCreamFlavorToPrice; | |
for (let i = 0; i < iceCreamFlavors.length; i++) { | |
iceCreamFlavorToPrice[iceCreamFlavors[i]] = iceCreamPrices[i]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment