Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (51 sloc) 1.28 KB

Question 1

The following is a html file which named bw.html

<!DOCTYPE html>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <script src=""></script>
(function (i, max_i) {
    for (;i < max_i; i+=1) {
            url: '' + i + '/jquery.min.js',
            success: function () {
})(1, 5);

Question 1-1

Please try to explain the reason of using the function expression which is


Question 1-2

Open bw.html with google chrome
What is the output of console ?
Did the output reveal 1 2 3 4, if not please fix it.

Question 1-3

bw.html use the external JavaScript file (
Why not just put this file to local ?

Question 2

The following script may execute normally in chrome, but raise exception in IE8. How to fix it?

var f = function () {

var another = f.bind({ name: 'welcome' });
another();  // welcome
You can’t perform that action at this time.