A
function
is a block of reusable code. It is useful because you can execute it many times. To define a function, we use var
like we did with declaring a variable. Functions are the central working units of JavaScript. Nearly every script you'll write uses one or more functions. Therefore it is important that you understand what a function is and how it works.
That's what functions are and that is what I've learned....
That's all for today... next time again....
Walang komento:
Mag-post ng isang Komento