How to properly end a javascript statement?

What do the two parenthesis at the end of javascript functions do?

  • What do the two parens at the end of this statement do? var foo = function() { // function body here.... )(); I see this quite a bit in the YUI javascript and was curious ...show more

  • Answer:

    == is equal to != is not equal to > greater than >= greater than or equal to < less than <= less than or equal

6KDSOCLKTZ3QEKNWEMR5JBBNPY at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Basically, the parenthesis tells that we are referring to a function not a variable...

Vaibhav

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.