I am trying to learn and improve my javascript skills.
A very helpful tool is firebug, with which i can inspect different javascript objects.
However, i have some questions:
Some object names (like jQuery, $, fn etc.) are displayed in red color. Why?
Some other objects has a "prototype" property, which is not in bold. What is that and when is good or not to use/implement it?
Most of functions are shown as "function()". But there are also some other functions which are displayed, for example, as "u(M)", "z()", "B(E)". Why they are different?
Thank you
from the documentation page of firebug:
Different color codes let you distinguish between the different types of variables and improve readability. Here they are in detail:
Format Description
Bold Black Objects
Black DOM objects
get in gray "Getter" functions
Bold green User functions
Green DOM functions
Bold Red Constructor functions
Hope this helps
You may want to have a look at the FirebugWiki
Bold Red are constructor functions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With