*Initialize var jagg for the first time it is met**(when it is null**) and
in all the other times, avoid initialization keep the same value.* Is that
correct?

*M.N.F. Dilhasha*
Software Engineering Intern | *WSO2 Lanka*

email   :
*[email protected] <[email protected]>*mobile : +94 77 8449321

On Fri, Feb 13, 2015 at 11:24 AM, Fathima Dilhasha <[email protected]>
wrote:

> Hi,
>
> I came across the following jaggery syntax,
>
> *var jagg = jagg || (function () {...}());*
>
> *var jagg = jagg || {...};*
>
>
> and I'm curious on what the use of it is.
> Can someone give an explanation on what context this is useful?
>
> Regards,
> Dilhasha
>
> *M.N.F. Dilhasha*
> Software Engineering Intern | *WSO2 Lanka*
>
> email   :
> *[email protected] <[email protected]>*mobile : +94 77 8449321
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to