JSOM Create List Items

List items can be created with the following javascript code;

CODE