I am brand new to the JavaScript side of HTML and I have been trying to hack together some other stack overflow posts into something working.
Chrome is failing to load: "file:///C:/lib/jquery.plugin.js" is this an online file, or something I need locally?
I don't know if im missing files, or if it cannot read the files (they are all next to each-other)
I've been trying to use chrome dev tool to figure out what it going on.
I have this project:
site.html
 <head>
    <script
  src="https://code.jquery.com/jquery-3.6.0.min.js"
  integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
  crossorigin="anonymous"></script>
    <script src="/lib/jquery.plugin.js"></script>
    <script src="table.js"></script>
</head>
<table class="table table-hover">
    <thead>
        <tr>
            <th>hats</th>
            <th>boots</th>
            <th>dollars</th>
            <th>tea</th>
        </tr>
    </thead>
    <tbody>
    </tbody>
</table>
table.js
$(document).ready(function() {
    promise = $.ajax({
        type:"GET",
        dataType:"text",
        url:"table.csv",
        cache:false
    });
    promise.done(function(data){
        //Parse CSV File
        //split on new line
        var dataArr = data.split("\n");
        //for each line in array
        $.each(dataArr,function(){
            if (this != "") {
                //split files and create row
                var row = new String("");
                valArr = this.split(",");
                    row += "<tr>"
                $.each(valArr, function(){
                    row += "<td>" + this +"</td>"
                });     
                    row += "</tr>"
                    //Add row to table
                    $('tbody').append(row);
            }
        });
    });
    // Run script if request fails
    promise.fail(function() {
       console.log('A failure ocurred');
    });
});
table.csv
tophat,hiking,12,green
birthday,snow,400,english
 
    