EduCoder_web training assignment--JavaScript learning manual 3: JS operator

This is 2021-1-4, 11:31 in the morning. It's
really good. I posted three articles in the morning.
So, have you listened to the internship class carefully???
You can discuss what you learned in this internship in the discussion area (if you listened carefully, I didn't listen carefully anyway...

first round

//请在此处编写代码
/***********Begin**********/
var a;
var b;
var c;
var d;
var e;
d=parseInt(a);
e=parseInt(b);
c=d%e;//c为数字类型,需要转换为字符串类型
String(c);

/*********End************/

Second level

//请在此处编写代码
/********Begin***************/
if(a>b){
    
    
     return a&&b ;
}else{
    
    
     return !a ;
}

/**********End****************/

Third pass

//请在此处编写代码
/*********begin*********/
var c=a>b?a:b;
return c;

/*********end*********/
}

Fourth level

//请在此处编写代码
/*********begin*********/
var c=((a-1)+b)*b==24?1:0;
var d=4;
var e = (c*d)+d;


/*********end*********/

Okay, that's all there is to it.
Students who have not followed the official account should pay attention as soon as possible!
Mouse tail juice!
who I am?
Teacher Ma’s closed disciple.
I’m a college student
like you. I like self-media and like to share.
Follow my official account and get more resources.
Welcome to join!
Let us study together! improve together! !
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45803282/article/details/112171296