Understanding 'this' in JavaScript: Global Context, Functions, and Arrow Functions Explained".
Jan 5, 2024 · 1 min read · 1.Global Scope:- This Refers to the Global object in the Dom .The Global object for the Dom is 'Window'. console.log(this) in this case the output will be "Window" 2.Within Function:- This will print undefined within Functions in Strict Mode.But In N...
Join discussion











