Open in app

Sign In

Write

Sign In

Priyanshu Chauhan
Priyanshu Chauhan

21 Followers

Home

About

Dec 1, 2021

Git practices

Project Guidelines · While developing a new project is like rolling on a green field for you, maintaining it is a potential dark twisted nightmare for someone else. Here’s a list of guidelines we’ve found, written and gathered that (we think) works really well with most JavaScript projects here at hive. …

Git

20 min read

Git

20 min read


Dec 1, 2021

Interview 2022 Frontend

Reconciliation: React provides a declarative API so that you don’t have to worry about exactly what changes on every update. This makes writing applications a lot easier, but it might not be obvious how this is implemented within React. …

React

18 min read

Interview 2022 Frontend
Interview 2022 Frontend
React

18 min read


May 23, 2020

Custom Polyfills

Promise All polyfill 2. Array filter polyfill

JavaScript

1 min read

Custom Polyfills
Custom Polyfills
JavaScript

1 min read


Mar 20, 2020

Interview notes 2.0

function foo1() https://gist.github.com/priyanshuchauhan/18273ccffacd3e646b1b9983944caff2 https://gist.github.com/priyanshuchauhan/5e88257b40e0c5078a9db16302f31bed console.log(test) typeof bar === “object” 3. First-class Function: a. Assign a function to a variable const foo = function() { console.log(“foobar”); } // Invoke it using the variable foo(); b. Pass a function as an Argument function sayHello() { return “Hello, “; } function greeting(helloMessage, name)…

2 min read

2 min read


Jun 15, 2019

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 ?

JavaScript

1 min read

Notes from the JS underworld: call-site
Notes from the JS underworld: call-site
JavaScript

1 min read


Sep 22, 2018

JS must know topics

1. JS Event delegation JS event listeners fire not only on a single DOM element but on all its descendants. 2. Event bubbling Inverse of delegation. Also known as propogation, vents on an element will “bubble up” and also fire on all parents. 3. Difference between “target” and “currentTarget” The…

JavaScript

2 min read

JavaScript

2 min read


Apr 24, 2018

JS OOPS example

var UserClass = (function() { //private var foo = 'testtt'; //private Method function sum(a, b) { return a + b; } // constructor function UserClass(name, age) { //public variables this.username = name; this.age = age; foo = 'hello' } // public method UserClass.prototype.getName = function() { return this.username; } return UserClass; })(); var userInstance = new UserClass("kamlesh", 30); userInstance.getName(); userInstance.age; userInstance.foo; //error since private

JavaScript

1 min read

JavaScript

1 min read


Mar 7, 2018

Ancient town of JS (Before ES6)

Class without ES6: new keyword does 5 things: a. It creates a new object. The type of this object is simply object. b. It sets this new object’s internal, inaccessible, [[prototype]] (i.e. proto) property to be the constructor function’s external, accessible, prototype object (every function object automatically has a prototype property). c. It makes the this…

JavaScript

2 min read

JavaScript

2 min read


Feb 14, 2018

Below you find a set of charts demonstrating the paths that you can take and the technologies that…

Roadmap to becoming a web developer Roadmap to becoming a web developer in 2018 Below you find a set of charts demonstrating the paths that you can take and the technologies that you would want to adopt in order to become a frontend, backend or a devops. …

JavaScript

2 min read

Below you find a set of charts demonstrating the paths that you can take and the technologies that…
Below you find a set of charts demonstrating the paths that you can take and the technologies that…
JavaScript

2 min read


Feb 8, 2018

clean-code-javascript

Table of Contents Introduction Variables Functions Objects and Data Structures Classes SOLID Testing Concurrency Error Handling Formatting Comments Translation Introduction Software engineering principles, from Robert C. Martin’s book Clean Code, adapted for JavaScript. This is not a style guide. It’s a guide to producing readable, reusable, and refactorable software in JavaScript. Not every principle…

JavaScript

26 min read

clean-code-javascript
clean-code-javascript
JavaScript

26 min read

Priyanshu Chauhan

Priyanshu Chauhan

21 Followers

JS fan

Following
  • Dave Pell

    Dave Pell

  • Pinterest Engineering

    Pinterest Engineering

  • Vinay Chauhan

    Vinay Chauhan

  • Nahush Farkande

    Nahush Farkande

  • Mattias Petter Johansson

    Mattias Petter Johansson

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech