Skip to content

Instantly share code, notes, and snippets.

@brendandawes
Last active March 15, 2016 15:07
Show Gist options
  • Save brendandawes/1287124 to your computer and use it in GitHub Desktop.
Save brendandawes/1287124 to your computer and use it in GitHub Desktop.
Learn to code with Kelis' Milkshake Part 1
/*
Learn to code with Kelis' Milkshake
http://en.wikipedia.org/wiki/Milkshake_(song)
Created by Brendan Dawes brendandawes.com
*/
// "my milkshake brings all the boys to the yard"
var milkShake;
var boysToTheYard = 0;
if (milkShake) {
boysToTheYard++;
}
@samuelcotterall
Copy link

Problem at line 1 character 5: 'milkShake' was used before it was defined.
Problem at line 3 character 3: 'boysToTheYard' was used before it was defined.
Problem at line 3 character 16: Unexpected '++'.

Sorry Bren.

Fork: https://gist.github.com/1287193

@brendandawes
Copy link
Author

brendandawes commented Oct 14, 2011 via email

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