O'Reilly logo
  • Nivan Morgan thinks this is interesting:

A function is a named and parameterized block of JavaScript code


Cover of JavaScript: The Definitive Guide, 6th Edition


in syntax a function is a group of statements and my use variables but the author is stating what a function is for, why functions are needed