I define object a
with an empty method b()
. The method has no parameter and does nothing!
Please someone tell me, why when I call a.b()
and pass JS code as a parameter, does it execute the code?
It works like a sink for example eval, setInterval, setTimeout and give JS code and execute it!