I have a Little js "module" with an interval function which should Output a console log every second, but it just puts it out once what am I missing in this logic?
const calc = {
render () {
this.foo;
},
foo() {
setTimeout(() => {
console.log("test");
}, 1000);
},
}
calc.render();