Monday, December 7, 2015

Programming with Functions in JavaScript - Programming Virgin

Programming with Functions in JavaScript - Programming Virgin


Alright, are you ready for the “hard” stuff? We’ve talked about where you can stick your data, but what about storing actions, stuff that manipulates that data? We need functions. We’ve already seen some functions in action, like prompt and alert. These functions are baked into the language. You can just use them. When you pass a value into them, that value is called an argument. When you are using alert you are calling the alert function. You’re saying hey, function do some shit. But you can also write your own functions which is where things start to get interesting. If you weren’t interested already. Programming with Functions in JavaScript - Programming Virgin


 

No comments:

Post a Comment