Skip to content

Instantly share code, notes, and snippets.

View Mariana88's full-sized avatar

Mariana Casella dos Santos Mariana88

View GitHub Profile
var app = {
db: {},
next_id: 0,
create: function(newThing) {
// this.db[this.next_id] = newThing;
// this.next_id ++;
if(newThing !== ''){
this.db[this.next_id] = newThing;
this.next_id ++;
console.log("THING WAS ADDED")