How to create a new object with javaScript and add it to the object list

how to create an object and add it to the object list
i tried to register an object but i can’t add it to the scene someone should please help me