# Interview Questions

1 min read, 196 words interviewquestion

# Questions

What is js bind? How is it different from Symbols()?

Binds an object to function, without using arguments. Reference it using this

UseCase In EventHandling function, parameters event is binded to function and could be used with `this`

# Linked List

class LinkedList {
  constructor() {
    this.head = null;
    this.lenth = 0;
  }
  insertAtHead(data) {
    const newNode = new LinkedListNode(data, this.head);
    this.head = newNode;
    this.length++;
  }
}

class LinkedListNode {
  constructor(value, next) {
    this.value = value;
    this.next = next;
  }
}
// TESTS
// createa list from bunch of values
What is the difference between typeof and instanceof? (opens new window)

Use typof for primitive data-types and instanceof for custom types

callback instanceof Function
typeof callback == "function"

# Resources

# Problem Solving

  • Drag and drop like trello
  • Sum of items in array (which can containe multiple arrays recursively)
  • Add drawing canvas, real editor in browser
  • calculator app using react

Subscribe to our Newsletter

If you like my work and think it was helpful kindly support my work


Buy Me A Coffee