brr
brr
KPCKevin Powell - Community
Created by brr on 8/18/2024 in #front-end
conosle log value undefined?`
textBox.addEventListener("keydown", (event) =>
console.log(`You pressed "${event.key}".`),
);
textBox.addEventListener("keydown", (event) =>
console.log(`You pressed "${event.key}".`),
);
In this case, the value of console.log(), which is undefined, is implicitly returned from the callback function.
source: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Functions What do they mean by conosle log's value being undefined? here coz like it doesnt seem undefined
13 replies
KPCKevin Powell - Community
Created by brr on 8/12/2024 in #front-end
JS Path
I am going through chrome dev tools docs, there is this "Copy JS Path" that they are telling to copy. I also pasted it in a console which evaluated to an expression. But I dont understand what exactly is a JS Path and why we copy it. I googled but still cant find anything... LINK: https://developer.chrome.com/docs/devtools/dom/#path
11 replies