I am wondering if there any difference between new FunctionOne
and new FunctionOne()
where FunctionOne is defined as
function FunctionOne(){
/// this function has no arguments
///some code
}
I am wondering if there any difference between new FunctionOne
and new FunctionOne()
where FunctionOne is defined as
function FunctionOne(){
/// this function has no arguments
///some code
}
There is no difference but to pass arguments when operator ()
is used. Other than that, both can be used to having the same effect. For example.
( new Date() ).getTime();
is the same as
( new Date ).getTime();