Blogger Information
Blog 32
fans 0
comment 0
visits 23507
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
声明变量-2019年5月5日20点30分
小李广花荣
Original
1165 people have browsed it
  1. 如何正确的声明和定义变量

    (1)利用var进行定义 定义自变量 不能用javaScript中的字母去定义 

             

    2. 变量的提升是原理,如果实现的?

            (1)提升原理就是变量进行定义赋值 

                      var a=10;

     3.分支结构有几种, 多分支与switch的实现过程

          (1)分支结构分为俩种  单分支和对分支 

     if(a==true){

         console.log(a)          

           }

var aaa=85;

var resa='';

switch(true){

case (aaa>=60):

resa = '优秀';

break;

case (aaa>40&&aaa<60):

resa = '无敌';

break;

default:

console.log ('不及格'+aaa);

break;

}

console.log(resa)

          

Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!