Skip to content

Instantly share code, notes, and snippets.

@MrNice
Created October 25, 2013 07:07
Show Gist options
  • Save MrNice/7150535 to your computer and use it in GitHub Desktop.
Save MrNice/7150535 to your computer and use it in GitHub Desktop.
This is my uploaded cheat sheet to typing.io that I'm using in order to master the most basic of Javascript language declarations. I was told that I should be able to type any one of these fragments in roughly 5 seconds, so I'm aiming for 3 apiece.
//THIS IS MY STUDY SHEET FOR TYPING.IO FOR GETTING INTO HACK REACTOR
//IF ANYONE ELSE EVER SEES THIS< PLEASE BE OK WITH USING IT.
var myFunc = function(arg1, arg2) {
};
for(var i = 0; i< array.length; i++){
};
for(var i = 10; i > 0; i--){
}
if(thisIsTrue){
} else if(somethingElse){
} else {
}
var myArray = [];
myArray.push(1);
myArray;
myArray.push('hi');
var myObj = {};
myObj['tony'] = '944 Market';
var tempVariable = 'marcus';
myObj[tempVariable] = '944 Market';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment