Top "This" questions

Keyword that refers to the current class instance or object in many object-oriented programming languages.

The invocation context (this) of the forEach function call

I was wondering what the 'this' value (or invocation context) is of the forEach callback function. This code doesn't seem …

javascript function foreach this invocation
"this" inside object

I'm trying to calculate a proportional height (while excluding a static height element) from a width that gets passed in …

javascript object this
Java: Class.this

I have a Java program that looks like this. public class LocalScreen { public void onMake() { aFuncCall(LocalScreen.this, oneString, twoString); } } …

java class this
JQuery $(this).attr("name") vs this.name

What is the main different between $(this).attr("name") and this.name and What is the technical explanation?

javascript jquery this attr
What is the 'global' object in NodeJS

I've just seen a weird behaviour of the this keyword in NodeJS environment. I'm listing them with code. I've run …

javascript node.js scope this global
Why declare properties on the prototype for instance variables in JavaScript

I'm trying to get my head around this black art called JavaScript - and, I must admit, pretty excited about …

javascript prototype this
Using "this" with class name

I am doing Android programming and was learning about Intents, when I saw a constructor that, to my C# trained …

java android this
Why is 'this' a pointer and not a reference?

I was reading the answers to this question C++ pros and cons and got this doubt while reading the comments. …

c++ pointers reference this c++-faq
Why keyword 'this' cannot be used in a static method?

Why can't the keyword this be used in a static method? I am wondering why C# defines this constraint. What …

c# this static-members
The correct way to bind object to Promise.then() argument

I found out the hard way that one can't simply just pass in a object's function into the Bluebird then. …

javascript node.js promise this bluebird