ServiceNow interview question

What is a javascript function?