vendredi 6 mai 2022

How can i get a random string out? [duplicate]

1. how can i get a random value from below object

const hellos = {

English: "Hello",

Japanese: "Konnichiwa",

German: "Hallo",

Spanish: "Hola",

Arabic: "Ahlan wa sahlan",

Chinese: "Nihao",

};

2. random output in console to test. E.g. "konnichiawa", "hola", etc.

i couldn't write my coding down, because it 's still hard for me as a beginner in JS. Please kindly give me some tips.Thank you!




Aucun commentaire:

Enregistrer un commentaire