Browse Source

HW<5> done

Levshin95 1 year ago
parent
commit
91a748ef18
1 changed files with 1 additions and 1 deletions
  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 */