Jump to content

Define Function Without Declaration


Ajmal
 Share

Recommended Posts

That doesn't make sense - define and declare mean the same thing as far as I know.
no, they are different.declaring attaches a name to a variable, defining creates a variable.you can declare without defining, var b;you can also define without declaring: ;"valid statement";anon functions are a perfect example of undeclared variables; you see them a lot.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...