|
|
submitted by
justinbezanson
2 months, 18 days ago
geekdaily.net — When you think of the keyword this you probably assume it refers to the current instance of the class. This is true for most object oriented languages like C# and Java.
So, knowing this you would probably assume the same would be true of JavaScript and it’s this keyword. This is, however, not the case. Like a lot of things about writing object oriented code in JavaScript, this behaves differently in some situations. this does not always refer to the class instance depending on how you use it.
|
|
tags:
AJAX | tag it
Everyones tags: | Your tags: | |
|
|
|
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking
the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
Users who kicked this story:
No comments so far
|