Ask coding questions

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

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

Voters
GeorgeDB
Comments
hotnewtop
SixBeeps

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