I'm struggling with extracting a random value from the object provided below, can anyone help me out?
const hellos = {
English: "Hello",
Japanese: "Konnichiwa",
German: "Hallo",
Spanish: "Hola",
Arabic: "Ahlan wa sahlan",
Chinese: "Nihao",
};
I want to display a random output in console for testing purposes. For example, "konnichiawa", "hola", etc.
As a beginner in JS, I find it challenging to write the code myself. Any tips or guidance would be greatly appreciated. Thank you!