reading-notes

This Repo required for Asac labs class 2


Project maintained by ManarAbdelkarim Hosted on GitHub Pages — Theme by mattgraham

FUNCTIONS, METHODS & OBJECTS

What is Function?

Functions let you group a series of statements together to perform a specific task. If different parts of a script repeat the same task, you can reuse the function (rather than repeating the same set of statements).

function

How does functions work?

To create a function, you give it a name and then write the statements needed to achieve its task inside the curly braces. This is known as a function declaration.

Function-keyword Function-Name(){ function-body; }

return