# Understanding this in JavaScript Objects, Inner Functions, and Callbacks

DevFeed: [Understanding this in JavaScript Objects, Inner Functions, and Callbacks](<https://devfeed.tech/articles/javascript-objects-and-what-is-this-35421.md>)

Original publisher: [Read original article](<https://darkcoding.net/software/javascript-objects-and-what-is-this/>)

Author: Graham King

Published: 2009-02-23T02:06:41Z

Content type: tutorial

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [callback](<https://devfeed.tech/topics/callback.md>), [bug](<https://devfeed.tech/topics/bug.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [callback](<https://devfeed.tech/tags/callback.md>), [closure](<https://devfeed.tech/tags/closure.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [local-variables](<https://devfeed.tech/tags/local-variables.md>), [scope](<https://devfeed.tech/tags/scope.md>), [software](<https://devfeed.tech/tags/software.md>), [window](<https://devfeed.tech/tags/window.md>)

## AI overview

This tutorial explains how JavaScript's this behaves in object methods, inner functions, and callbacks. It shows how object context can be lost and how closures and local variables can preserve access to the intended object.

## Source excerpt

"Navigate the tricky waters of 'this' in JavaScript objects and callbacks."