Scope and Binding in JavaScript

Function x executions in the scope of object y.

var Car = function() { = 'car'; }
var Truck = function() { = 'truck'; }

var func = function() { alert(; }

var c = new Car();
var t = new Truck();


Original Article

Author: Binny V A
A philosopher programmer who specializes in backend development and stoicism.

Leave a Reply

Your email address will not be published. Required fields are marked *