Skip to content

Instantly share code, notes, and snippets.

@patricoferris
Last active July 28, 2018 10:57
Show Gist options
  • Save patricoferris/221834401dcddd58653d7ffb184a2cc6 to your computer and use it in GitHub Desktop.
Save patricoferris/221834401dcddd58653d7ffb184a2cc6 to your computer and use it in GitHub Desktop.
An example of minifying JavaScript
//Normal JavaScript Code
const arr = [1, 2, 3, 4, 5];
for(let i = 0; i < arr.length; i++){
console.log(arr[i]);
}
@marchershey
Copy link

Is console.log(arr[a]) supposed to be arr[a] or is it supposed to be arr[i] in line 9?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment