Interview Notes
- Talk about the pros and cons of cookies
- Array. The prototype. Slice. Call (arr, 2) the method is:
- What is browser local storage like
- Prototype/constructor/instance
- Prototype chain
- Execution Context (EC)
- The variable object
- scope
- The scope chain
- closure
- Object copy
- The execution of the new operator
- Instanceof principle
- Reuse of code
- inheritance
- Type conversion
- Type judgment
- modular
- Anti-shake and throttling
- The function executes to change this
- ES6/ES7
- AST
- Babel compilation principles
- The function is currified
- Error in the length of get request parameters
- .
- .
- What you know about JSON?
- What are the ways to lazily load JS?
- What’s the difference between synchronous and asynchronous?
- What is cross-domain?
- Several solutions across domains
- What if the page encoding and the requested resource encoding are inconsistent?
- How do you do modular development?
- AMD, CMD specification differences?
- What is the core principle of requireJS?
- Reflux and redraw
- DOM manipulation
- What native methods do array objects have? List them
- Those operations cause memory leaks
- What is Cookie isolation?
- Respond to events
- How do Flash and JS interact through what classes?
- What are the pros and cons of Flash versus Ajax?
- Valid javascript variable definition rules
- What’s the difference between XML and JSON?
- What’s the difference between HTML and XML?
- Progressive enhancement and graceful degradation
- Web workers and Web sockets?
- How do Web applications actively push data from the server to the client?
- How do I delete a cookie?
- Page history status issues for Ajax requests?
JavaScript classic interview questions
The contents of the document mainly include: prototype chain, class, inheritance, scope, closure, JS runtime mechanism/single thread, JS data types, JS built-in functions/built-in objects, JS deweight, JS logic judgment, JS memory leaks, DOM, BOM, communication, Ajax, error monitoring……
- How many ways can you create an object?
- How does Instanceof work?
- Class declaration?
- Generate instance? Declare a class, how to generate an instance of the class?
- What are the similarities and differences between call and apply?
- How many ways to implement object inheritance/inheritance in javascript? What are the advantages and disadvantages of these methods?
- What is your understanding of scope chains?
- This?
- What are the characteristics of closures?
- Closure application scenarios?
- How are closures used in real development?
- Js running mechanism/single thread/asynchronous
- How to understand js single thread?
- Why is JS single threaded?
- What is the difference between synchronous and asynchronous? What is an example of synchronous and asynchronous?
- When do I need asynchrony?
- What is a task queue?
- What’s the difference between stack and queue?
- What’s the difference between stack and heap?
- What is an Event loop?
- The event – loop process?
- Which statements are put into the asynchronous task queue?
- When is it put into the task queue?
- What types can JS get using Typeof?
- How to determine exactly if a variable is an array type?
- What types of js variables are stored and describe their characteristics?
- The difference between null and undefined?
- The typical use of undefined?
- Typical use of null?
- Which term is a===b in chrome60+?
- What built-in functions/data encapsulate class objects in JS?
- What are the built-in objects in JS?
- What types of js variables are stored and describe their characteristics?
- String methods/String object methods?
- How to deduplicate an array? (method)
- What operations cause memory leaks?
- .
Common basic algorithms for JavaScript
- string
- An array of
- The sorting
- To find the
- Tree search/traversal
- Binary tree
- .
Front-end JavaScript interview notes, classic interview questions, common algorithms and other PDF can be shared, can be added to this Q:624369675Get it for free!Copy the code