I have an Object like
let sample = {a:5, b:3 , c:7, d:8}
Object.entries(sample)
Now i will get an array of length four
[ [a,5], [b,3], [c,7] , [d,8] ]
Where the key and value will be as an array values.
Now i need to print the values as
- a holds the value 5
- b holds the value 3
- c holds the value 7
- d holds the value 8