js-interview-bank
interview questions
- What's the difference between display block, inline, inline-block, and flex?
- Describe The JavaScript event loop; How does NodeJs handle threading?
- What are the differences between var, let, and const?
- How can you add an item to the beginning of an array?
- How can you easily check whether a string is a palindrome?
- How can you shallow-clone an object using es6?
- What is a Promise? What problem does it solve?
- Besides a Promise, what are other ways JavaScript enables asynchronous programming?
- What’s one way a JavaScript function or method can be called with a given scope?
- List at least 5 things you would do to ensure a website has the highest organic SEO rank possible.
- At a high-level, what do React, Angular, and Vue all provide that makes them valuable to developers?
- What are at least 2 distinct advantages of using TypeScript in lieu of JavaScript as the source language of a web or NodeJs project?
- How do you define a new module in node?
- What types of modules does node support?
- There’s no binary data type in JavaScript. How can we handle binary data in node?
- In what situations should we use a node stream?
- What is an API?
- Suppose you were making a web-service CRUD controller for Users. What might the API paths look like, and which verb would go with each path?
- What is CORS?
- Why are cookie-based-authentication websites more vulnerable to cross-site forgery attacks than token or JWT-based webapps?
- What is a document or key-value pair database? What are its strengths & weaknesses versus a relational database?
- What are the two main key types when creating a DynamoDb table? What are they used for?
- Describe the main difference between the Client Credentials Oauth 2.0 flow vs the Authorization flow.
- How is an access token typically used in an Oauth-compliant API?
- In Oauth 2.0, what is a refresh token used for?
- When should you cache an access token?
- How can web-apps “silently” reauthenticate a user, as if the user was in a native app?
- What is the difference between a REST service and an API Gateway? What are some things an API Gateway is typically responsible for?
- What is Serverless architecture? How does it compare with a Container-based approach?