Methods can be named and invoked from JavaScript, and they can also be associated with an event and invoked when that event is triggered.