What is the purpose of the following #JavaScript code?
b=f_name("function() { return typeof window.console != 'undefined' }"); /cc @mathias
@soaj1664ashar The inner string is JS code that checks whether `window.console` is present or not. Is `f_name` equal to `eval` or something?
-
-
@mathias The value assigned to Boolean variable "b". Thanks! -
@soaj1664ashar It could be just `b = typeof window.console != 'undefined';`.
End of conversation
New conversation -
-
-
@mathias It is equal to `eval`!Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias@soaj1664ashar I tried to google f_name to see if it is a know function in some framework, with no luck.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.