JavaScript study notes

1. Single-var form: Use a single-var statement at the top of a function. Use one var statement to declare multiple variables.

   function func(){

        var a=1,

b=2,

sum=a+b,

obj={};

   }

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324901169&siteId=291194637