-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
33 lines (26 loc) · 831 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
fetch('lista.json')
.then(response => {
// Parse the JSON data
return response.json();
})
.then(data => {
// Extract the array from the parsed data
const array = data.lista;
// Now you can work with the array
console.log(array);
})
.catch(error => {
// Handle any errors that occur during fetch or parsing
console.error('Error loading or parsing JSON:', error);
});
const par = document.getElementById('par');
const mainword = document.getElementById('mainword');
const input = document.getElementById('input');
const nush = document.getElementById('nush');
const baga = document.getElementById('baga');
const inchizitii = [];
const inchizitiiValide = [];
let fr = new FileReader;
function bagaMare() {
console.log(jsonobject)
}