ServiceNow Interview Question

What is a javascript function?