# this in JavaScript

this in JavaScript: Methods and this, Losing this, and How Arrow Functions Help.

Updated: November 14, 2026

1. [Methods and this](https://www.ask-codey.com/lessons/javascript-this-methods-and-this) (Apprentice): A method is a function that belongs to an object, and inside it the word this means the object before the dot, so one method can work on whichever object calls it.
2. [Losing this, and How Arrow Functions Help](https://www.ask-codey.com/lessons/javascript-this-arrow-functions-and-this) (Journeyman): When you hand a method to other code as a callback, it loses the object before the dot and this goes missing, and an arrow function or bind gives it back.

Source: https://www.ask-codey.com/courses/javascript-in-depth/topics/javascript-this
