Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Did you read eloquent javascript? The main thing that I think would be confusing is scope and closures, so perhaps looking into those two topics would be helpful.
function mainScope (args) { //main function
var newfunction = function(){ //still has access to variables accessible in mainScope
return args; //can manipulate args as expected
};
return args;
}
function secondaryScope (args) { //new function
newFunction(); //would throw error
}