How To Use The On Function From Process Example Javascript

How To Use The On Function From Process Example Javascript