js how to get value from object code example
Example 1: js get all values of object
Object.values(object1)
Example 2: javascript object get value by key
var obj = {
a: "A",
b: "B",
c: "C"
}
console.log(obj.a); // return string : A
var name = "a";
console.log(obj[name]);