EduCoder_web training homework--JavaScript learning manual 12: Math, date and exception handling

Recently, there is a small yellow book for review, and the frequency may be a bit slow.
But don't worry, everyone, I will definitely finish it before the deadline.
Please pay more attention to me, and follow my public account! !

first round

//请在此处编写代码
	/********** Begin **********/
    return Math.min(Math.ceil(a),
    Math.floor(a),
    Math.round(a),
    Math.sqrt(a),
    Math.sin(a))+Math.max(Math.ceil(a),
    Math.floor(a),
    Math.round(a),
    Math.sqrt(a),
    Math.sin(a))
    
	/********** End **********/

Second level

 /*********Begin*********/
    var b=date.getFullYear();
     var c=date.getMonth();
     var d=date.getDate();
     var e=date.getDay();
      
    
      return b+","+c+","+d+","+e;
     
    /*********End*********/

Third pass

//请在此处编写代码
	/********** Begin **********/
    try{
    
    
      if(a==0)
          throw new Error("zero cannot be numerator");
       else if(a<0){
    
    
            throw new Error("negative cannot be rooted");
            }
        else{
    
    
           return 1/Math.sqrt(a) ; }
       }catch(err){
    
    
        return err.message;
        }
	/********** End **********/

who I am?
Two Xianqiao transport commissioner
, Permanent representative of Shanxi Chenghua Avenue
pineal bombs shake three-dimensional BI vaginal Master Jin
Chen e e University City sub-
skipping ten experts

welcome the public attention to my number
so that we can discuss learning about life
here as well More resources are waiting for you.
Welcome to the online conversation!
Insert picture description here

Guess you like

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