Comparing JavaScript for Automation (JXA) and AppleScript

A post was split to a new topic: Need Help with JXA Script Using Bookends