I have a javascript array in an external file:
<script src="assets/players.js"></script>
contents of above array:
window.players = [
"Addison, Jackson",
"Agron, Dmitry",
"Zuccarino, John"
]
I have tried to return the number of records to no avail:
<h3>Sample data file with <script>window.players.length;</script> names:</h3>
What am I doing wrong..?
jQueryis a javascript plugin which is just pre-coded javascript so this is easy to do without having to use thejQuerylibrary.