Skip to content

Instantly share code, notes, and snippets.

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")
@1n3ffbl3
1n3ffbl3 / braks-n-dots.js
Created April 12, 2018 10:45 — forked from colevandersWands/braks-n-dots.js
brackets and dots
// an example to learn about dots and brackets
// below are 6 test cases that work
// try writing some that break, find out what's happening
var og = {first: 'fifty', last: 'cent'};
var curtis = 'first';
var jackson = 'last';
console.log(og.first);