Last active
July 28, 2018 10:57
-
-
Save patricoferris/221834401dcddd58653d7ffb184a2cc6 to your computer and use it in GitHub Desktop.
An example of minifying JavaScript
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
//Normal JavaScript Code | |
const arr = [1, 2, 3, 4, 5]; | |
for(let i = 0; i < arr.length; i++){ | |
console.log(arr[i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is
console.log(arr[a])
supposed to bearr[a]
or is it supposed to bearr[i]
in line 9?