Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone,
I'm trying to make a todolist and it's several days I can't solve my problem. I've a module from which there is a todo class and its methods. I export the object and call its constructor in my main app. Also, in the main app, I try to use one of the object method (object.print()) and it generates an error because it is not seen as a function...

Here you can find the main files of my code: Todolist that doesn't work (yet) · GitHub[^]

What I have tried:

I tried to write the file "todo.js" in different ways, allways the constructor was fine, but not the printing method. I don't know if the mistake comes from the module and the way I export it, or if it's due to a cast issue.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900