Why it returns object object[Solved] | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
20th Jul 2022, 12:56 AM
Varin
Varin - avatar
2 Réponses
+ 2
PRO Because you are returning object. You need to convert in string using JSON.stringify() function console.log(JSON.stringify(letter_frequency("hello")))
20th Jul 2022, 3:32 AM
A͢J
A͢J - avatar
+ 1
A͢J Thanks for helping me again bro🙏
20th Jul 2022, 3:40 AM
Varin
Varin - avatar