JS-04- process control loop and

<! DOCTYPE HTML> 
<HTML> 
    <head> 
        <Meta charset = "UTF-. 8"> 
        <title> </ title> 
    </ head> 
    <body> 
    <Script> // routine for, while loop is the same // here only for recording and for ... in loop var List = [l, 2,3 ];
         for (I in List) { 
           the console.log (I, List [I]); 
        } var obj = {name : 'zhansan', Age: 18 is, Sex: 'NaN3' }
         for (I in obj) { 
            the console.log (I, obj [I]); 
        } for ( var I = 0; I <10;i++){
        
        
        
        
        
            console.log(i);
        }
      </script>
    </body>
</html>

 

Guess you like

Origin www.cnblogs.com/qinqin-me/p/11265013.html