Upcoming SlideShare
×

# Banquet 17

370 views

Published on

Published in: Technology, Design
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
370
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
2
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Banquet 17

1. 1. 夜宴
2. 2. Crockford on JavaScript• http://yuiblog.com/crockford/
3. 3. Zakas的小问题• var num1 = 5, num2 = 10, result = num1+++num2;• Q: What is the value of result? What is the value of num1? What is the value of num2?http://www.nczonline.net/blog/2010/02/16/my-javascript-quiz/
4. 4. • var x = 5, o={ x: 10, doIt: function doIt(){ var x = 20; setTimeout(function(){ alert(this.x); }, 10); } }; o.doIt();• Q: What value is displayed in the alert?
5. 5. • var num1 = "10", num2 = "9";• Q: What is the value of num1 < num2? What is the value of +num1 < num2? What is the value of num1 + num2? What is the value of +num1 + num2?