examples/todo/js/services/todos-db.js
function(title) {
			var todoId = counter++;
			todos[todoId] = {
				id: todoId,
				title: title,
				completed: false
			};
			return todoId;
		}
function(title) {
			var todoId = counter++;
			todos[todoId] = {
				id: todoId,
				title: title,
				completed: false
			};
			return todoId;
		}
function ( title ) { var todoId = counter ++ ; todos [ todoId ] = { id : todoId , title : title , completed : false } ; return todoId ; }
Adds a todo
@param {string} title The label of the todo
@returns {number} The id of the new todo
Adds a todo