projs/todos/js/services/todo-service.js
// Those functions are PRIVATE - not to be used outside this file!
Those functions are PRIVATE - not to be used outside this file!
Those functions are PRIVATE - not to be used outside this file!
function _createTodo(txt, imp) {
    return {
        id: makeId(),
        txt: txt,
        importance: +imp,
        createdAt: new Date(Date.now()).toLocaleDateString("en-US"),
        isDone: false
    };
}
function _createTodo ( txt , imp ) { return { id : makeId ( ) , txt : txt , importance : + imp , createdAt : new Date ( Date . now ( ) ) . toLocaleDateString ( "en-US" ) , isDone : false } ; }
Those functions are PRIVATE - not to be used outside this file!
Those functions are PRIVATE - not to be used outside this file!