text: import { Todo } from "./todo";
  
  export class App {
    constructor() {
      this.heading = "Today's to do list";
      this.todos = [];
      this.todoDescription = "";
    }
  
    addTodo() {
      if (this.todoDescription) {
        this.todos.push(new Todo(this.todoDescription));
        this.todoDescription = "";
      }
    }
  
    removeTodo(todo) {
      let index = this.todos.indexOf(todo);
      if (index !== -1) {
        this.todos.splice(index, 1);
      }
    }
  }
  