example: development

--- .jsm source code

File jsm_dev/example_development.jsm:

metafun gcd( self, a, b )
{
    if (a > b)
        metaret self, a-b, b;
    
    if (b > a)
        metaret self, b-a, a;
    
    return a; 
}

--- SCRIPT tags in the present page:

--- Result:

GCD(910,1235)=

--- See also

See also example_production.html and the main article.