Top "This" questions

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

How to document the properties of the object in the JSDoc 3 tag: @this

The @param tag allow the documentation of properties, e.g. /** * @param {Object} userInfo Information about the user. * @param {String} userInfo.…

this jsdoc
Should I use `this` within a class?

Within a member function of a class in C++, does it make a difference, if I use this->dataMember …

c++ class this
The reason to use JS .call() method?

I'm interested what's the reason to have call() method in JS. It seems it duplicates usual method of calling this. …

javascript function methods this
Can I change the context of javascript "this"?

var UI$Contract$ddlForm_change = function() { //'this' is currently the drop down that fires the event // My question is can …

javascript this dom-events
Difference between $(this) and this in jquery

What is the fundamental difference between using $(this) vs this $('.viewComments').click(function(ev){ //returns the desired value alert(…

jquery this
requestAnimationFrame with this keyword

I'm using webkitRequestAnimationFrame but I'm having trouble using it inside of an object. If I pass the this keyword it …

javascript object animation this
this value in JavaScript anonymous function

Can anybody explain to me why A is true and B is false? I would have expected B to be …

javascript ecmascript-6 this anonymous-function
"This" within es6 class method

For some reason I'm getting weird values for "this" in my es6 class... 'use strict'; class Clicker { constructor(element) { this.…

javascript class ecmascript-6 this
Can "this" ever be null in Java?

Saw this line in a class method and my first reaction was to ridicule the developer that wrote it.. But …

java this
Is it safe to use the "this" pointer in an initialization list?

I have two classes with a parent-child relationship (the Parent class "has-a" Child class), and the Child class has a …

c++ initialization this