0
Q:

javascript get dictionary values

// Get keys of a dictionary
let dict = { a:1 , b:2 , c:3 }

console.log( Object.keys(dict) ) // expected output : ['a', 'b', 'c']
-1
const object1 = {
  a: 'somestring',
  b: 42,
  c: false
};

console.log(Object.values(object1));
// expected output: Array ["somestring", 42, false]
1

New to Communities?

Join the community