JSOM Query List Items

List items can be retrieved with the following javascript code;

CODE