Skip to content

Instantly share code, notes, and snippets.

@Krasnyanskiy
Created August 26, 2016 20:44
Show Gist options
  • Save Krasnyanskiy/e80542201675ca5e7970590b59f0ccb7 to your computer and use it in GitHub Desktop.
Save Krasnyanskiy/e80542201675ca5e7970590b59f0ccb7 to your computer and use it in GitHub Desktop.
-cs: parameter vs argument
(function(a,b) { alert(a+b); })(1);
/*
You can think of the parameter as a parking space and the argument as an automobile.
*/
@Krasnyanskiy
Copy link
Author

(function(a,b) { alert(a+b); })(1,7);

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