Skip to content

Instantly share code, notes, and snippets.

@ashish2199
ashish2199 / gist:d1eff15743344fea9006b05fd44f6762
Created October 13, 2021 14:58 — forked from bradfrost/gist:59096a855281c433adc1
Why I'm Not A JavaScript Developer

Answering the Front-end developer JavaScript interview questions to the best of my ability.

  • Explain event delegation

Sometimes you need to delegate events to things.

  • Explain how this works in JavaScript

This references the object or "thing" defined elsewhere. It's like "hey, thing I defined elsewhere, I'm talkin' to you."

  • Explain how prototypal inheritance works.
@ashish2199
ashish2199 / interview.js
Created August 4, 2021 17:47 — forked from gs-ysingh/interview.js
JS Interview
1. Write poly-fill of Object.create and explain why it worked:
if(typeof Object.create != "function") {
Object.create = function(param) {
var Fun = function(){};
Fun.prototype = param;
return new Fun();
}
}
@ashish2199
ashish2199 / System Design.md
Created July 11, 2021 14:58 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@ashish2199
ashish2199 / .gitignore
Created November 11, 2017 14:42 — forked from chhh/.gitignore
.gitignore file for IDEA, Eclipse, NetBeans
#
# Project specific excludes
#
tomcat
#
# Default excludes
#