Small circle of ape-side JavaScript interview questions 2019 (b)

Small ape circle the front lecturer continue to give you a summary of today js interview questions, previous article we already have a base part js face questions today, a small ape circle web lecturer for you to explain js front-end application design issues, we must take Kane, in order to win in front of other people.

JavaScript front-end application design issues

1. Interpret way data flow and two-way data binding.

Angular1.x based on two-way data binding, and React, Vue, Elm, etc. based on unidirectional data flow architecture.

2-way data flow architecture for MVC in what areas?

MVC has about 50 years of history, and has evolved into MVP, MVVM and MV *. What is the relationship between the two is? If the MVC is an architectural pattern, then the one-way data flow is what? Are these competing model can solve the same problem?

3. The client and server-side or classic MVC MVC What is the difference?

Tip: SmalltalkMVC classic MVC is suitable for desktop applications. In Web applications, there are at least two different data MVC period.

4. Make the functional programming and what the object-oriented programming different commands or key factors?

Tip: Currying (curried), point-free function, partial function application, higher-order functions, pure function, independent of side effects, record type (combined, algebraic data types) and the like.

5. In the front end and in the context of JavaScript, programming and functional reactive programming what?

Tip: There is no correct answer. Roughly speaking however, on small functional programming is encoded, the preparation of pure and reactive programming function is encoded large, i.e., the data flow between modules, FP-style connector assembly prepared. FRP- functional reactive programming (FunctionalReactiveProgramming) is another different but related concepts.

6. immutable data structures (immutabledatastructures) which problems?

Are there any immutable structure affect performance? JS ecosystem in which libraries provide data structures immutable? What are the advantages and disadvantages of these libraries is that?

Tip: thread-safe (? We really need to worry about JavaScript in the browser in it), no side effects of the function, better state management.

7. Whether large application should use static typing?

1. How to compare TypeScript / Flow and Elm / ReasonML / PureScript such as JS Switch language? What are the advantages and disadvantages of these methods is that?

2. What is the selection of a particular type of system should be the main criteria?

3. What is the type of inference (typeinference)?

4. statically typed language and strongly typed languages ​​What is the difference? What is the nature of this area JavaScript?

5. Do you know there are weakly typed but statically typed language? You know there is dynamic type but strongly typed language? For example or two.

Tip: Structural and Nominal type systems, the type of robust, tool / ecosystem support, correctness over convenience.

What an outstanding modular system (modulesystems) in 8.JavaScript there? How to evaluate the ES module system.

It is listed among different modules of the system to achieve interoperability issues some of the complexities involved (main modules and the ES of interest CommonJS Interoperability)

9.HTTP / 2 will affect JavaScript packaged applications?

The basic difference is listed on its version of the HTTP / 2.

10.FetchAPI what improvements relative to traditional Ajax have?

What are the disadvantages of using FetchAPI / difficulties it?

What is Ajax can do, and fetch can not do?

11. discuss issues related to the Promise.

Tip: eager evaluation (eagerevaluation), embarrassing cancellation mechanism, by then () method disguise map () and flatMap () and so on.

These are the small apes circle HTML5 lecturer to the 2019 side JavaScript face questions we organize, how we do it, if for lack of which part of the feeling, you can go to a small circle ape learn about that particular part, to make up for their deficiencies do the most adequate preparation, small partners Come on!

Guess you like

Origin www.cnblogs.com/xiaoyuanquan/p/10984370.html