Web_Development/TodoApp at main · aman-mahajan0101/Web_Development

This is a TodoApp i made
But it is not working properly
my thought for this was
I will create a li element and append 3 buttons in it
For deletion,for upward move,for downward move
Now whenever i add the list it adds the button in the list but as soon as i add another todo the buttons in the previous list gets deleted
To overcome this problem i changed the location of initliasing btn1,2,3 and defining it inside the createTodo function but then i am not able to call btn1.addlistner