Plain Old JavaScript
Posted by: K. Scott Allen,
on 27 Feb 2012 |
View original | Bookmarked: 0 time(s)
Once upon a time there was a pure JavaScript model. The model sang songs about simplicity in a land full of complexity and confusion. The model's clear and beautiful voice comforted many hearts in the land.
var protagonist = {
firstName: "Priscilla",
lastName: "Flannery",
todos: [
{ description: "Kiss frogs", done: false },
{ description: "Slay dragons", done: false }
],
addTodo: function (description) {
this.todos.push({
description: description,...