DEV Community

Discussion on: [Challenge] log("this") or log("this").withData({})

Collapse
lukaszahradnik profile image
Lukáš Zahradník

I don't think this is really possible in vanilla JS.

Collapse
nombrekeff profile image
Keff Author

I guess. The only way I figured it out was making use of setTimeout, but, as you explained in another comment, it's not 100% guaranteed it will always work and can behave in unexpected ways.

Hopefully, somebody comes up with some weird solutions :)