Functions are blocks of code that perform specific tasks and take in parameters to return an output. To define a function, use the function keyword followed by the name and parameters in parentheses along with curly braces containing the function code. Functions are called by writing the name followed by parentheses containing any arguments. Methods are pre-built functions that can be called on built-in objects like numbers, arrays, and strings.