FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Understanding this, call(), apply(), and bind() in JavaScript
NewsWeb Development

Understanding this, call(), apply(), and bind() in JavaScript

via Dev.to WebdevHarman Panwar12h ago

In JavaScript, the keyword this is used inside functions to refer to the object that is calling the function. A simple way to think about it is: this means “who is calling the function.” Understanding this helps when working with objects, methods, and advanced function behaviors. What this Means in JavaScript The value of this depends on how a function is called . Example: let person = { name : " Alice " , greet : function () { console . log ( " Hello, my name is " + this . name ); } }; person . greet (); Output: Hello, my name is Alice Here: this refers to the person object this.name accesses the object's property this Inside Normal Functions In a normal standalone function, this usually refers to the global object (or undefined in strict mode). Example: function showThis () { console . log ( this ); } showThis (); Since the function is not called by any object, this does not refer to a specific object. this Inside Objects When a function is called as a method of an object , this refe

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles

Microsoft Hasn’t Had a Coherent GUI Strategy Since Petzold
News

Microsoft Hasn’t Had a Coherent GUI Strategy Since Petzold

Lobsters • 12h ago

Claude Code Hooks: Automate Everything Between Your Commits
News

Claude Code Hooks: Automate Everything Between Your Commits

Medium Programming • 13h ago

Things That Shocked Me in My First Month as a Developer
News

Things That Shocked Me in My First Month as a Developer

Medium Programming • 14h ago

What Are We Actually Measuring?
News

What Are We Actually Measuring?

Dev.to • 14h ago

Benchmarking lies: What Go’s benchmark tool isn’t telling you
News

Benchmarking lies: What Go’s benchmark tool isn’t telling you

Medium Programming • 14h ago

Discover More Articles