麻烦大神看看这个代码哪里错了,怎么修改?小白求助

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script src="script.js">
      var doccolor="ff80ff";
      function calculation(a, b, c){
var a = age;
var b = gender;
var c = phone;
function calage(age){
if(age>0.5 && age<=0.6){
        return 1;
        else if(age>0.6 && age<=0.65){
          return 2;
          else if(age>0.65 && age <=7){
            return 3;
            else if(age>0.7 && age <=0.75){
              return 4;
              else if(age >0.75 && age <=0.8){
                return 5:
                else if(age >0.8 && age <= 0.85){
                  return 6:
                  else if(age >0.85){
                    return 7;
                  }
                }
              }
            }

          }
        }
      }}

function calgender(gender){
  if(gender>0.6 && gender<= 0.75){
    return 2;
    else if(gender >0.75&& gender< 0.9){
      return 4;
      else if(gender > 0.9){
        return 6;
      }
    }
  }
}

function calphone(phone){
  if (phone>0.2 && phone <=0.3){
    return 1;
    else if (phone >0.3 && phone <=0.4){
      return 2;
      else if (phone >0.4 && phone<= 50){
        return 3;
        else if(phone>0.5){
          return 4;
        }
      }
    }
  }
}
var resu
a + b + c = resu
return resu;
}


      </script>
  </head>
  <body bgcolor="ffffff" onload="resetCounters();" data-new-gr-c-s-check-loaded="14.991.0" data-gr-ext-installed="">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>

<b>By Tylor Lee</b></font></td>
</tr>
</tbody></table>
<p>
  </p><blockquote>

<font size="+1">
<b>Rating system</b>
</font><br>
Type in the following requirement to get the points of the KOL
<p>

</p><form name="powermod">
<table border="1" align="center">  
  <tbody><tr>
<td>Age: 
<input type="text" value="" name="aaa" onchange="pmout.value='';"></td>
<td>phone:
<input type="text" value="" name="iphone" onchange="pmout.value='';"></td>
<td>gender:
<input type="text" value="" name="female" onchange="pmout.value='';"></td>
</tr>
<tr>
<td>
  <input type="button" value="Compute" onclick="pmout.value = calculation(aaa,female,iphone);">
</td>
   <td align="right">
<i>result</i> =
</td>
<td bgcolor="bbbbbb"><input type="text" value="" name="pmout" onchange="pmout.value='';">
</td>
</tr>
</tbody></table>
</form>


<p>
<font size="0">
The program is written in JavaScript,
and runs on the client computer.
</font>
</p><p>


</p></blockquote>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>

</tr>
</tbody></table>
<p>


    
  </body>
</html>

小白求助,很基础的问题 谢谢大神

代码太长,一行行找太麻烦,不写注释不分层的弊端。

你把你的代码,按页面元素划分,一块块注释掉,看看问题在哪。

如果是js的问题,一样操作,小范围注释缩小问题点。

这个是错误,我觉得有可能是我js的格式不正确

 

<body bgcolor="ffffff" onload="resetCounters();" data-new-gr-c-s-check-loaded="14.991.0" data-gr-ext-installed="">

resetCounters();这个方法不存在,所以报错找不到

 

这两个报错是同样的问题,都是方法找不到

 

我觉得你应该好好看看文档,https://www.w3school.com.cn/

代码不吐槽的  

第一个 resetCounters 这个方法没有

 

第二个缺少结尾括号

第三  这个是什么鬼

 

第四  这个是引入外部的js

等等 还有很多

头皮发麻

我觉得你应该好好看看文档,http://www.xinbiancheng.cn/

if else全错...真和楼上楼上一样,头皮发麻。  你用的啥工具   就没有提醒么?