why i am getting this type of error in my code Essix.html:10 Uncaught ReferenceError: rbi is not defined
    at HTMLInputElement.onclick (Essix.html:10)
Essix.js
function rbi(){
    var arr=[1,2,3,4,5,6];
    for(let i=1;i<=arr.length;++i){
   // console.log(arr[i]);
   document.write(arr[i]);
}
}
rbi();
Essix.html
<!DOCTYPE html>
<html>
    <head>
        <title>This is ES6 Tutorial</title>
        <script type="text/script" src="Essix.js"></script>
    </head>
    <body>
      <h1>Welcome</h1>
      <form>
          <input type="button"  value="submit"  onclick="rbi()"/>
      </form>
    </body>
</html>