One habit that’s been saving me a lot of stress:
As soon as I finish a small part of a project, I test it immediately.
For example, if I just added a button that should add an item to a list, I don’t wait. I write something simple like this and check it right away:
function addItem() {
const input = document.getElementById("taskInput");
console.log(input.value); // just to confirm it’s working
}
If something’s wrong, I catch it while the code is still fresh in my head. Waiting until the end usually means spending extra time hunting for problems. Testing early keeps things simpler.
View passport