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

Pages: 1-

javascript

Name: Anonymous 2010-06-20 12:23

how is this supposed to work?

(function()
    {
    var derp = function()
    {
    some shit
    }
some other shit
}

i dont understand (function){}
shouldn't it be like this function funcname(){} ?

Name: Anonymous 2010-06-20 12:27

If Javascript's your first language, then I'm not surprised.

http://en.wikipedia.org/wiki/Lambda_calculus

Name: Anonymous 2010-06-20 12:27

>>1
how is this supposed to work?

It doesnt, you forgot some semicolons there.

Name: >>2 2010-06-20 12:34

Name: Anonymous 2010-06-20 12:34

>>3
forget about semicolons and other shit. i just stripped the code down to the relevant stuff.
im curious about how he creates the function. i've always thought you have to give your function a name like
function nameDerp(){stuff...}

i made a failure in the above example, correct one:

(function() {
var inArray = function() {
    stuff...
}
stuff...
})();

Name: Anonymous 2010-06-20 13:16

Learn to Lambda.

Name: Anonymous 2010-06-20 13:41

>>5
forget about semicolons and other shit.
``Forget about the syntax, I have a question about the syntax!''?
Also, get a grown-up to explain the rules of capitalisation to you.

Name: Anonymous 2010-06-20 15:21

Functions are just values.
Read some SICP, learn some lisp(CL or Scheme, or both), lambda calculus, ml, forth or even assembly to understand the meaning(s) of that.

Name: Anonymous 2013-09-02 12:55

javashit is shit

Name: Anonymous 2013-09-15 17:48

                            ██████████████████████                                                                          
          ██████████████████                      ████            ██████████████    ████    ██    ██  ██████    ████    ██    ██
        ██                      ██                    ████  ████████████████████  ██    ██  ██    ██  ██      ██    ██  ██  ██
        ██                  ████            ██            ████    ██████████████  ██        ████████  ████    ██        ████
          ██████████████████          ██████                ██    ██████████████  ██    ██  ██    ██  ██      ██    ██  ██  ██
                        ██        ████    ██                ██    ██████████████    ████    ██    ██  ██████    ████    ██    ██
                        ██████████        ██                ██    ██████████████                                            
                          ██          ████  ██              ██    ██████████████  ██████████  ██    ██  ██████  ██      ██  
                            ██████████      ██              ██    ██████████████      ██      ██    ██  ██      ████  ████  
                              ██        ████  ██            ██    ██████████████      ██      ████████  ████    ██  ██  ██  
                                ████████      ██            ██    ██████████████      ██      ██    ██  ██      ██      ██  
                                ██        ████              ██    ██████████████      ██      ██    ██  ██████  ██      ██  
                                  ████████            ████████    ██████████████                                            
                                          ████████████      ████████████████████                                            
                                                                  ██████████████

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