I have a javascript object like the following:
var Numeric_values = {
US: {01: "202-555-0151", 02: "202-555-0167", 03: "202-555-0150"},
CAD: {01: "613-555-0144", 02: "613-555-0192", 03:"613-555-0151"},
AUS: {01: "1900 654 321"}
};
I am attempting to access all of the values of this object and listing them out as a string like this:
"202-555-0151","202-555-0167", "202-555-0150"
"613-555-0144", "613-555-0192","613-555-0151"
"1900 654 321"
I have so far attempted to use Object.values(Numeric_Values) and
for (let key in Numeric_values){
console.log(Numeric_values[key]);
}
and these always return as [object,object], how can i fix this?
textOut()defined? That's what you should have showed in your attempt.