Ask coding questions

← Back to all posts
How to debug and output to the console inside the function
GeorgeDB (0)

console.log('test'); // this I see
window.function = function (text) {
console.log('test2'); // this I don't
return text.value?.length;
}

Comments
hotnewtop
SixBeeps (5348)

It works fine for me. Gotta actually call the function for it to do anything.