Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

JavaScript alternative

Name: Anonymous 2008-12-24 12:26

Is there any language similar to javascript but which can compile to binary?

Name: Anonymous 2008-12-24 13:55

Lua:
function factorial(n)
  if n == 0 then
    return 1
  else
    return n * factorial(n - 1)
  end
end         

//notice the difference
Javascript:
function factorial(x){for(var i=x;i>0;i--){x=x*i};return x}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List