Levshin95 2 gadi atpakaļ
vecāks
revīzija
91a748ef18
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      HW5/index.js

+ 1 - 1
HW5/index.js

@@ -76,7 +76,7 @@
 /* deserialize */
 
     let d = JSON.parse('{"name" : "Andriy", "surname" : "Lunin", "age" : "23", "nationality" : "Ukrainian", "club" : "Real Madrid"}')
-    persons[4] = d
+    persons.push(d)
 
 /* HTML */