JavaScript functions come in three different flavours.

Statement

Expression

Constructor

run the code below in your console or html page.

Categories: JavaScript