Read the front-end interview summary, and read the interview Summary

Source: Internet
Author: User

Read the front-end interview summary, and read the interview Summary

I have been studying the front-end for only two months. I feel that reading is too slow and I am determined to go through the practice. The interview Tour started in middle July. Up to now, we have met three companies on site, including Meituan, miaoji travel, and reading. Meituan was rejected, so sad. However, it is still in the super entry stage and cannot meet the requirements of others. Now I want to study hard and practice the technology. I hope I can join my favorite company in the future.
Reading is the second company to get an offer. It may take this company to start my first internship in my life. Now I want to record my interview experience and summarize it as a souvenir.
The palm of your hand is in sihui building. There is a river next to it, which is dirty. It feels worse than Weijin River at the school gate... Today, I went to the interview and wore trousers. The sun was so big that I went to the company and sweated... There are several companies on the second floor. At the end of the page, I saw the iReader logo, and I was relieved.
The front-end sister gave me a basic questionnaire and a pen question, Nanni! I have to write questions for the interview first !!! At that time, I was shocked. Okay, I can check what I learned some time ago... The questionnaire also needs to fill in the constellation blood type. Does the company rely on this for Personality Analysis. Hum.

There are two sheets of A4 paper in the pen exam, which are divided into two parts: CSS and JS.

Written CSS

1. How can I center an image with a width of PX in the horizontal and vertical directions.
2. Do you know how to clear the floating path? What is the principle of zoom.
3. What is webview and webkit?
4. Implement the layout of one of their pages
5. What is the habit of writing CSS by myself? It indicates that this problem is hard to understand. I am confused about the camper style. The style uses class and the id to be obtained by JS.
6.html 5 and CSS3
7. What are the current popular la s? I don't quite understand the meaning of this question, and I am confused about responsive la S.

JS

1. Given a string, the most frequently used characters and the number of times are displayed, for example, the following character:

var str='afjaslfjaieaaajeijfei';

Wow, although I have not written much JavaScript code, it seems that this question will be answered. I thought about it and I could use an object to record it. the attribute of the object is a character, and the attribute value is the number of times. Click to write:

Function countMaxTimes (str) {var oCount ={}; var len = str. length; // count the number of occurrences of each character while (len --) {var char = str. charAt (len); if (oCount [char]) {oCount [char] = oCount [char] + 1 ;}else {oCount [char] = 1 ;}} // obtain the characters var maxChar = '', maxTimes = 0, for (eachChar in oCount) {if (oCount [eachChar]> maxTimes) {maxChar = eachChar; maxTimes = oCount [eachChar] ;}return {char: maxChar, times: maxTimes }}

Because Javascript is not used a lot, so I can't remember how to traverse the attributes in the object. I got stuck for a while, and I finally remembered that for in can be done!
Then let's add the knowledge of for in:

For (varable in obj or array)
Attackers can traverse object attributes or array elements.
Here, varable is the property name of the object or the subscript of the array element. It is a subscript, not the array element.

Although this question is very basic, it is found that it is really useful to use the object attribute method to record information. I have encountered this problem before the interview. In addition, this is the first time that I use obj [varable] to access attributes. In this way, the attribute names and attribute values correspond to each other to record the two corresponding data. This method should not be easy to use!
In fact, Arrays can also be used in this way.
2. Three application scenarios of this
3. What data types does JS have and what values are returned when false is used.
4. Use jQuery to implement a tab. The jQuery API has not been completed yet. At that time, I was overwhelmed, but I also wrote some.
The tab structure is soy sauce:

<ul id="tab"><li>a</li><li>b</li><li>c</li><li>d</li></ul><p>A</p><p>B</p><p>C</p><p>D</p>

At that time, I didn't know it, but I had to understand it. I checked jQuery's API and implemented it. Hahaha:

$ (Document). ready (function () {var tabTitles = $ ('# tab li'); var tabConts = $ (' # tab ~ P '); // tab content tabTitles. on ('click', function () {tabConts.css ('display', 'None'); var index = $. inArray (this, tabTitles); tabConts.eq(index).css ('display', 'block ');});});

The $. inArray (value, array) method is used to obtain the index value of the elements in the array.
There seems to be another question. I don't remember Zun...

Interview

A younger sister and a younger brother came here. When the younger brother introduced me, he shook hands with me and introduced the later sister. It was very formal, there is a sense of violation on programmers. Haha. Both of them are very friendly.
My sister read the pen questions and asked less questions. The main problem is that the younger brother is asking:
1. How to count the number of lines of code, upgraded version... How to remove comments.
2. What are the general questions about the operating system and process threads?
3. Wisdom: It takes 60 minutes for an uneven wooden stick to burn from one end. How can I get a wooden stick that can burn for 20 minutes?
4. I have discussed a lot of my papers and the direction of image processing. Let me talk about what my papers are. Then I asked how to deal with a layer of fog in the photo. I thought about how to enhance the contrast. My brother said it was similar, and blabla said an algorithm, from the blackest one... I don't understand. Then, my brother said that I think you are suitable for PS... Emma, good luck ..
Then, my sister asked me which one is more interested in CSS and JavaScript, and my career plans...
In the end, their hr supervisor and sister should come and talk to me later. My sister is very temperamental and has sharp eyes. I dare not look at her for a long time. Okay, as soon as I met someone with a strong aura, I was very frustrated ..
This is the interview... The interview part seems to be well written. Well, will it be my first internship.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.