What is the purpose of the following #JavaScript code?
b=f_name("function() { return typeof window.console != 'undefined' }"); /cc @mathias
-
-
Replying to @soaj1664ashar
@soaj1664ashar The inner string is JS code that checks whether `window.console` is present or not. Is `f_name` equal to `eval` or something?3 replies 0 retweets 0 likes
Replying to @soaj1664ashar
@soaj1664ashar It could be just `b = typeof window.console != 'undefined';`.
3:51 AM - 14 Aug 2013
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.