Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
Regarding javascript function writing technique
tri_inn
9 years ago
466
Reply
i have different people write function in js different way. here i am giving few sample code. so some one help me to understand why people write function different way and their significance.
1) function foo()
{
}
2)
var foo= $(function(){
}
3)
foo
: function() {
}
so please see the above code and tell me the significance of above different approach of writing javascript code. looking for details discussion with sample code. thanks
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Jquery JSON Add,Edit,Update,Delete in Asp .Net
add two decimal numbers in jquery