Forem

Mafee7
Mafee7

Posted on

2 2

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)

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay