I need to create HTML selectors and to get their values from JSON, I created JSON and tried to read it simply by adding one more in html document and then just parse into variable with JS, but it doesn't work, answers which I found didn't really help.
HTML:
<body>
<form>
<label>Select list</label>
<select id = "Coutries">
</select>
<select id = "Bands">
</select>
<select id = "Albums">
</select>
</form>
<script src="data.json"></script>
<script src="script.js"></script>
</body>
JavaScript:
const data = JSON.parse(data);