Skip to content

Commit d3313c3

Browse files
committed
Added some question and updated chinese version
1 parent 16eab77 commit d3313c3

File tree

2 files changed

+77
-2
lines changed

2 files changed

+77
-2
lines changed

Chinese/README.md

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
#前端工程师面试问题
22

33
@版本 1.0
4-
##贡献者
54

6-
@bentruyman (http://bentruyman.com/), @roger_raymond (http://twitter.com/iansym), @ajpiano (http://ajpiano.com/), @paul_irish (http://paulirish.com/), @SlexAxton (http://alexsexton.com/), @boazsender (http://boazsender.com/), @miketaylr (http://miketaylr.com/), @vladikoff (http://vladfilippov.com/), @gf3 (http://gf3.ca/), @jon_neal (http://twitter.com/jon_neal), @wookiehangover (http://wookiehangover.com/) and @darcy_clarke (http://darcyclarke.me)
5+
**备注:** 本repo包含了一些前端面试问题用于考查候选者。不建议对单个候选者问及每个问题(那需要好几个小时)。只要从列表里挑选一些,就能帮助你考查候选者是否具备所需要的技能了。
6+
7+
记住,很多问题都是开放的,可以引发有趣的讨论。那比直接的答案更能体现此人的能力。
8+
9+
####最初的贡献者
10+
11+
**备注:** 大部分问题从是某个帖子搜集和由下列个人提供:
12+
13+
* @bentruyman (http://bentruyman.com)
14+
* @cowboy (http://benalman.com)
15+
* @roger_raymond (http://twitter.com/iansym)
16+
* @ajpiano (http://ajpiano.com)
17+
* @paul_irish (http://paulirish.com)
18+
* @SlexAxton (http://alexsexton.com)
19+
* @boazsender (http://boazsender.com)
20+
* @miketaylr (http://miketaylr.com)
21+
* @vladikoff (http://vladfilippov.com)
22+
* @gf3 (http://gf3.ca)
23+
* @jon_neal (http://twitter.com/jon_neal)
24+
* @wookiehangover (http://wookiehangover.com)
25+
* @darcy_clarke (http://darcyclarke.me)
26+
* @tairraos (http://xiaole.happylive.org)
727

828
## 一般问题
929

@@ -208,6 +228,31 @@ foo.bar = 'hello';
208228
问题:foo.length的值是什么?
209229
**答案: `undefined`
210230

231+
```javascript
232+
foo = foo||bar
233+
```
234+
问题: 这行代码是什么意思?
235+
**答案: if(!foo) foo = bar
236+
237+
```javascript
238+
foo>>1
239+
```
240+
问题: 这行代码是什么意思?
241+
**答案: Math.floor(foo/2)
242+
243+
```javascript
244+
foo|0
245+
foo+.5|0
246+
```
247+
问题: 这行代码是什么意思?
248+
**答案: parseInt(foo) & Math.round(foo)
249+
250+
```javascript
251+
function foo(bar1, bar2, bar3){}
252+
```
253+
问题: 如何获取参数的个数?
254+
**答案: foo.length //this example is 3
255+
211256

212257
## jQuery-Specific Questions:
213258
## jQuery相关问题
@@ -239,6 +284,8 @@ foo.bar = 'hello';
239284
$(".foo div#bar:eq(0)")
240285
```
241286

287+
* 'delegate()'和'live()'有什么区别?
288+
242289

243290
## CSS相关问题
244291

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Keep in mind that many of these questions are open ended and could lead to inter
2323
* @jon_neal (http://twitter.com/jon_neal)
2424
* @wookiehangover (http://wookiehangover.com)
2525
* @darcy_clarke (http://darcyclarke.me)
26+
* @tairraos (http://xiaole.happylive.org)
2627

2728
### General Questions:
2829

@@ -169,6 +170,31 @@ foo.bar = 'hello';
169170
Question: What is the value of foo.length?
170171
**Answer: `undefined`
171172

173+
```javascript
174+
foo = foo||bar
175+
```
176+
Question: What is the mean for?
177+
**Answer: if(!foo) foo = bar
178+
179+
```javascript
180+
foo>>1
181+
```
182+
Question: What is the mean for?
183+
**Answer: Math.floor(foo/2)
184+
185+
```javascript
186+
foo|0
187+
foo+.5|0
188+
```
189+
Question: What is the mean for?
190+
**Answer: parseInt(foo) & Math.round(foo)
191+
192+
```javascript
193+
function foo(bar1, bar2, bar3){}
194+
```
195+
Question: How to get the numbers of parameters?
196+
**Answer: foo.length //this example is 3
197+
172198

173199
### jQuery-Specific Questions:
174200

@@ -187,6 +213,8 @@ Question: What is the value of foo.length?
187213
```javascript
188214
$(".foo div#bar:eq(0)")
189215
```
216+
* Difference between 'delegate()' and 'live()'?
217+
190218

191219
### CSS-Specific Questions:
192220

0 commit comments

Comments
 (0)