There are three ways to define a function. Which way is better and why?


function declarationFunction1(param1, param2)
{
        alert(param1 +"___"+ param2);
}
declarationFunction2 = function(param1, param2)
{
        alert(param1 +"___"+ param2);
}
declarationFunction3 = new Function("param1","param2", "alert(param1 +'___'+ 
param2)");



Can someone explain me the following two lines of code for the Browser 
class?

this.dom=(document.createElement && document.appendChild && 
document.getElementsByTagName)?true:false;
this.def=(this.ie||this.dom); // most used browsers, for faster if loops




Thanks in advance.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to