Notes from the JS underworld: call-site

Referring to Dostoevsky’s quote: Prototype and “this” are source code of unhappiness in JS since ES6.

this, Bind, call, apply (Call Site):
Below code snippet covers it all (plus bit of ES6 setPrototypeOf)

setPrototypeOf ?

prototypes are covered in next blog: till then an easy architecture from book “You Don’t Know JS”

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How I ended up in Web Dev and the way you can be a part of this community….

Primitives in JavaScript: You Can’t Change Index[0] of a String

Frontend Application Security: How We Protect Sensitive User Data

Currying Functions In JavaScript

Ultimate Member MailChimp Addon v2.3.2

How I built Advanced SDN PoC Designer with mxGraph & VueJS

SDN PoC Designer

Vlocity OmniScript Selectable Items with DataRaptor and Custom Template

All about the World of JavaScript Frameworks !!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Priyanshu Chauhan

Priyanshu Chauhan

JS fan

More from Medium

React Webpack Setup Shaun Wassell Tutorial

How does React bailout work in reconciliation — React Source Code Walkthrough 13

React- : Components and Props

A few weeks maintaining React components, using various approaches