What are javascript functions?

Functions are block of code enclosed with braces as in other programming language.
In javascript functions are called first level object. Because all elements are treating as a object in javascript.