Advertisement
Guest User

JS

a guest
Mar 30th, 2022
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let objA = {
  2.         name: Apple,
  3.         product: { IPhone: {models: {5 {Release: 2012,
  4.                                         Price: 1000}
  5.                                      6 {Release: 2014,
  6.                                         Price: 999}
  7.                                      7 {Release: 2016,
  8.                                         Price: 1001}
  9.                                     }
  10.                             },
  11.                     IMac: {models: {.........}
  12.                           }
  13. }
  14.  
  15. objA.product.Iphone.models.5 =>     Release: 2012
  16.                                     Price: 1000
  17.        
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement