Skip to content

Instantly share code, notes, and snippets.

View Kishimoto96's full-sized avatar

Kishi Kishimoto96

View GitHub Profile

Server-side Validation Discussion

  1. What is server-side validation?
  2. How can server-side validation help prevent security vulnerabilities?
  3. What is the role of client-side validation?
  4. If we have client-side validation, why do we even need a server-side validation?
  5. How does the express-validator package simplify server-side validation in Node.js applications?

RESTful API Discussion Questions

  1. What is the difference between restful API and traditional API?
  2. What are the HTTP Methods in RESTful API and when would you use each of these?
  3. What does this HTTP Status codes represent?
    • 1xx
    • 2xx
    • 3xx
    • 4xx
    • 5xx
  4. What is the difference between the following response functions?

Node.JS Discussion Questions:

  1. What is Node.js and what are the key features of it?
  2. What is npm and why do we use it?
  3. What are some popular Node.js frameworks and libraries, and how are they used in building web applications?
  4. What is V8?
  5. What is Express.JS? and how does it simplify the development process?

Inheritance in JavaScript

  1. What is inheritance in JavaScript, and how does it differ from inheritance in other programming languages?
  2. What is a Prototypal inheritance model?
  3. What is the difference between classical and prototypal inheritance?
  4. What is a constructor function in JavaScript, and how does it differ from a regular function?
  5. How does the .prototype property work in JavaScript, and what is its relationship to constructor functions?

object oriented programming (OOP)

  1. What are some advantages of using object-oriented programming (OOP) in JavaScript, and how does it differ from other programming paradigms?
  2. What are some common design patterns used in object-oriented programming, and how can they help to solve recurring software development problems?
  3. Can you explain the difference between classical inheritance and prototypal inheritance in JavaScript, and provide some examples of each?
  4. How do you define a class in JavaScript, and what are some best practices for creating and using classes effectively?
  5. What is the role of constructors and prototypes in OOP in JavaScript, and how do they relate to each other?

Destructuring & Spread Operator:

  1. What is destructuring in JavaScript and how does it work?
  2. How can the spread operator be used in JavaScript?
  3. What are some practical use cases for using destructuring and the spread operator in JavaScript?
  4. How does destructuring and the spread operator differ from traditional assignment and concatenation in JavaScript?
  5. Can destructuring and the spread operator be used with non-array and non-object data types in JavaScript?
@Kishimoto96
Kishimoto96 / discussion.md
Created March 18, 2023 09:33 — forked from halitbatur/discussion.md
Object discussion questions

Object Discussion Questions

There is some coding in this discussion. Feel free to write them in a REPL or in the comments below.

  1. How is an object different from an array?
  2. How does const work with objects?
  3. Explain the difference between bracket syntax and dot syntax. Give an example of something that works with bracket syntax but not dot syntax. Give an example of something that works with dot syntax but not bracket syntax.
  4. What are computed properties? Write an example code.
  5. What is the difference between Object.keys and Object.entries? Write example code using both of them.
  6. How do we get only the values of an object?