Ajmal Posted September 25, 2009 Share Posted September 25, 2009 Can we Define Function Without Declaration in JavaScript????? Link to comment Share on other sites More sharing options...
Synook Posted September 25, 2009 Share Posted September 25, 2009 That doesn't make sense - define and declare mean the same thing as far as I know. Link to comment Share on other sites More sharing options...
rnd me Posted October 1, 2009 Share Posted October 1, 2009 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 More sharing options...
justsomeguy Posted October 1, 2009 Share Posted October 1, 2009 You can create an anonymous function, but you have to assign it to something. What are you trying to do? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.