Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common interview questions in the front end of web

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "what are the common interview questions at the front end of web?" friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "what are the common interview questions in the front end of web?"

1. What is a box model?

In a web page, the amount of space occupied by an element consists of several parts, including the content of the element (content), the inner margin of the element (padding), the border of the element (border), and the outer margin of the element (margin). In the space occupied by these four parts, some parts can display the corresponding content, while some parts are only used to separate adjacent areas or areas. Together, the four parts constitute the box model of the elements in css.

2. What are the elements in the line? What are the block-level elements?

Inline elements: a, b, span, img, input, strong, select, label, em, button, textarea

Block-level elements: div, ul, li, dl, dt, dd, p, h2-h7, blockquote

3. Briefly describe the difference between synchronous and asynchronous.

Synchronization is a blocking mode and async is a non-blocking mode. Synchronization means that when a process executes a request, if it takes a period of time for the request to return information, the process will wait until it receives the return message. Async means that the process does not need to wait forever, but continues to perform the following operations, regardless of the status of other processes. When a message is returned, the system will inform the process to process it, which can improve the efficiency of execution.

4. The difference between px and em

Px and em are both units of length. The difference is that the value of px is fixed, and it is easy to calculate as much as it is specified. The value of em is not fixed, and em inherits the font size of the parent element. The default font height for browsers is 16px. So all unadjusted browsers match: 1em=16px. So 12pxcards 0.75empene 10pxstories 0.625em

5. The role of callee and caller in Javascript?

Caller returns a reference to the function that calls the current function; callee returns the function function being executed, that is, the body of the specified function object.

What is the process of a complete HTTP transaction?

Basic process:

a. Domain name resolution; b. Initiate the 3-way handshake of TCP; c. Initiate a http request after establishing a TCP connection; d. The server responds to the http request and the browser gets the html code; e. The browser parses the html code and requests resources in the html code. The browser renders the page and presents it to the user.

How do you understand the position of front-end engineer?

a. The front end is the programmer who is closest to the user. The front end's ability is to make the product evolve from 90 points to 100 points, or even better. Participate in the project, quickly and high-quality completion of the effect map, accurate to 1pxposition c. Communicate with team members, UI designers, product managers; d. Good page structure, page reconstruction and user experience; e. Deal with hack, compatible, write beautiful code format; f. Optimize the server and embrace the latest front-end technology.

At this point, I believe you have a deeper understanding of "what are the common interview questions at the front end of web?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report