What is a function

by Rodrigo Tello

2023-07-14

In programming, a function is a "type" of program.

Functions look like this:

function functionName( ){ }

An example of a function called WordInverter, that it takes the words of a sentence and inverts them. function wordInverter( ){ }

But for me, functions look like this

drawing and example of a function