DEV Community

Mafee7
Mafee7

Posted on

Make you coder friends triggered!

I found another way by which you can troll your friends!

Umm... I am learning java.. busy..

const needed? or this will happen:

Code:

document.querySelector = document.body;
document.getElementById = document.body;
document.getElementsByClassName = document.body;
document.getElementsByName = document.body;
document.getElementsByTagName = document.body;
// Always return body element
// Bonus: Errors
// + open Stackoverflow, etc - no avail!!!
Enter fullscreen mode Exit fullscreen mode

Top comments (0)