Skip to main content
Code Review

Return to Answer

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I am going to mostly focus on style here.

  1. You need to indent your code. According to JSLint, JavaScript should use 4-space indentation.

  2. You need to use braces around all your ifs, fors, &c. According to JSLint, you should style your braces like this:

     function myFunction() {
     if (condition) {
     // Do something...
     }
     while (condition) {
     // Do something...
     }
     }
    
  3. As demonstrated in the example above, you should also use a space after your closing parenthesis ) and your opening brace {.

  4. The man who wrote JSLint has a list of good styles, which seems to be widely used widely used by the JavaScript community.

I am going to mostly focus on style here.

  1. You need to indent your code. According to JSLint, JavaScript should use 4-space indentation.

  2. You need to use braces around all your ifs, fors, &c. According to JSLint, you should style your braces like this:

     function myFunction() {
     if (condition) {
     // Do something...
     }
     while (condition) {
     // Do something...
     }
     }
    
  3. As demonstrated in the example above, you should also use a space after your closing parenthesis ) and your opening brace {.

  4. The man who wrote JSLint has a list of good styles, which seems to be widely used by the JavaScript community.

I am going to mostly focus on style here.

  1. You need to indent your code. According to JSLint, JavaScript should use 4-space indentation.

  2. You need to use braces around all your ifs, fors, &c. According to JSLint, you should style your braces like this:

     function myFunction() {
     if (condition) {
     // Do something...
     }
     while (condition) {
     // Do something...
     }
     }
    
  3. As demonstrated in the example above, you should also use a space after your closing parenthesis ) and your opening brace {.

  4. The man who wrote JSLint has a list of good styles, which seems to be widely used by the JavaScript community.

added 11 characters in body
Source Link
user34073
user34073

I am going to mostly focus on style here.

  1. You need to indent your code. According to JSLint, JavaScript should use 4-space indentation.

  2. You need to use braces around all your ifs, fors, &c. According to JSLint, you should style your braces like this:

     function myFunction() {
     if (condition) {
     // Do something...
     }
     while (condition) {
     // Do something...
     }
     }
    
  3. As demonstrated in the example above, you should also use a space after your closing parenthesis ) and your opening brace {.

  4. The man who wrote JSLint has a list of good styles, andwhich seems to be widely used by the JavaScript community.

I am going to mostly focus on style here.

  1. You need to indent your code. According to JSLint, JavaScript should use 4-space indentation.

  2. You need to use braces around all your ifs, fors, &c. According to JSLint, you should style your braces like this:

     myFunction() {
     if (condition) {
     // Do something...
     }
     while (condition) {
     // Do something...
     }
     }
    
  3. As demonstrated in the example above, you should also use a space after your closing parenthesis ) and your opening brace {.

  4. The man who wrote JSLint has a list of good styles, and seems to be widely used by the JavaScript community.

I am going to mostly focus on style here.

  1. You need to indent your code. According to JSLint, JavaScript should use 4-space indentation.

  2. You need to use braces around all your ifs, fors, &c. According to JSLint, you should style your braces like this:

     function myFunction() {
     if (condition) {
     // Do something...
     }
     while (condition) {
     // Do something...
     }
     }
    
  3. As demonstrated in the example above, you should also use a space after your closing parenthesis ) and your opening brace {.

  4. The man who wrote JSLint has a list of good styles, which seems to be widely used by the JavaScript community.

Source Link
user34073
user34073

I am going to mostly focus on style here.

  1. You need to indent your code. According to JSLint, JavaScript should use 4-space indentation.

  2. You need to use braces around all your ifs, fors, &c. According to JSLint, you should style your braces like this:

     myFunction() {
     if (condition) {
     // Do something...
     }
     while (condition) {
     // Do something...
     }
     }
    
  3. As demonstrated in the example above, you should also use a space after your closing parenthesis ) and your opening brace {.

  4. The man who wrote JSLint has a list of good styles, and seems to be widely used by the JavaScript community.

default

AltStyle によって変換されたページ (->オリジナル) /