franklin1 Beta member Messages 5 Dec 6, 2012 #1 function functionname() It is an example of a function in JavaScript
OhSnapWord Fully Optimized Messages 1,853 Location USA Dec 6, 2012 #2 If I'm not mistaken, those brackets contain arguments for the function. Function MyFunction(var1, var2, etc...)
If I'm not mistaken, those brackets contain arguments for the function. Function MyFunction(var1, var2, etc...)
berry120 Fully Optimized Messages 3,434 Location UK Dec 7, 2012 #3 OhSnapWord said: If I'm not mistaken, those brackets contain arguments for the function. Function MyFunction(var1, var2, etc...) Click to expand... Yup, this - it's the same in a lot of languages. When the function doesn't have any parameters the brackets are still needed as a way of differentiating between functions and fields.
OhSnapWord said: If I'm not mistaken, those brackets contain arguments for the function. Function MyFunction(var1, var2, etc...) Click to expand... Yup, this - it's the same in a lot of languages. When the function doesn't have any parameters the brackets are still needed as a way of differentiating between functions and fields.
strollin Knowitall! Messages 3,729 Location N. Calif. Dec 7, 2012 #4 Technically, they're braces () not brackets []. Brackets are used in many languages in array definitions.
Technically, they're braces () not brackets []. Brackets are used in many languages in array definitions.
berry120 Fully Optimized Messages 3,434 Location UK Dec 7, 2012 #5 strollin said: Technically, they're braces () not brackets []. Brackets are used in many languages in array definitions. Click to expand... Nope, in the good proper English of the UK they're technically known as brackets But yes, this does get confusing...
strollin said: Technically, they're braces () not brackets []. Brackets are used in many languages in array definitions. Click to expand... Nope, in the good proper English of the UK they're technically known as brackets But yes, this does get confusing...
strollin Knowitall! Messages 3,729 Location N. Calif. Dec 7, 2012 #6 Interesting... What are these [] called in the UK?
berry120 Fully Optimized Messages 3,434 Location UK Dec 7, 2012 #7 strollin said: Interesting... What are these [] called in the UK? Click to expand... Simply square brackets most of the time.
strollin said: Interesting... What are these [] called in the UK? Click to expand... Simply square brackets most of the time.
jmacavali Fully Optimized Messages 4,867 Dec 7, 2012 #8 I have nothing to contribute to the OP but () = parenthesis [] = brackets {} = fancy brackets where I'm from.
I have nothing to contribute to the OP but () = parenthesis [] = brackets {} = fancy brackets where I'm from.
berry120 Fully Optimized Messages 3,434 Location UK Dec 7, 2012 #9 jmacavali said: I have nothing to contribute to the OP but () = parenthesis [] = brackets {} = fancy brackets where I'm from. Click to expand... () = brackets [] = square brackets {} = curly brackets UK style!
jmacavali said: I have nothing to contribute to the OP but () = parenthesis [] = brackets {} = fancy brackets where I'm from. Click to expand... () = brackets [] = square brackets {} = curly brackets UK style!
vampist Fully Optimized Messages 2,404 Location USA Dec 7, 2012 #10 berry120 said: () = brackets [] = square brackets {} = curly brackets UK style! Click to expand... () = Parentheses [] = Brackets (some times square brackets) {} = Curly Brackets Vampist style!
berry120 said: () = brackets [] = square brackets {} = curly brackets UK style! Click to expand... () = Parentheses [] = Brackets (some times square brackets) {} = Curly Brackets Vampist style!