Challange->Child name generator! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Challange->Child name generator!

Can you code this challenge? Title: Child Name Generator Create a program that generates a name based on a query asked by the user. For example, the user could enter an alphabet like 'A', an origin like 'Spain', 'Egypt', profession like 'Scientist', or theme like 'Flower' and your program should output names that match the query like [Alisha, Abigail ...], [Alejandro, Miguel ...], [Seth, Osiris ...], [Lily, Rose ...] respectively. Hope you understood happy coding and enjoy 🎉🎉🎊🎊

25th Sep 2017, 5:23 PM
Aditya
Aditya - avatar
9 Answers
+ 5
I tried some basic name generation but the names turn out to be a mix of african and alien. XD https://code.sololearn.com/WE7makCDgRn1/# Some examples :D Sir Xafesa Munmepala Muhufa Wumdo Wi Wu Mr. Nurrameala Culudolam EDIT: Version two, danish edition: https://code.sololearn.com/W9a5uDyHquP1/#js Mrs. Prim Kmemth'elt Krip-Krith Kmavtgluth Mrs. Glipporst Hremt Znehn Flart Glyrn Quust
25th Sep 2017, 9:10 PM
Schindlabua
Schindlabua - avatar
+ 2
your code should generate logical name randomly without storing names but if you want you can store some names
25th Sep 2017, 5:26 PM
Aditya
Aditya - avatar
+ 2
nooowww you think it can be lil illogical but it should not be completed illogical
25th Sep 2017, 5:29 PM
Aditya
Aditya - avatar
+ 2
Update your browser :P
26th Sep 2017, 9:52 AM
Schindlabua
Schindlabua - avatar
+ 2
On your mobile phone? Maybe update iOS or your Android or chrome/safari then. I'm using relatively new javascript features, that's why you get an error
26th Sep 2017, 9:54 AM
Schindlabua
Schindlabua - avatar
+ 2
No. On android it uses a android.webkit.WebView, on iOS a UIWebView. On desktop it uses an <iframe>. It very much depends on your os/browser
26th Sep 2017, 10:02 AM
Schindlabua
Schindlabua - avatar
+ 1
@schindlabua there is error in line number 18 so code is not running
26th Sep 2017, 9:51 AM
Aditya
Aditya - avatar
0
I m using sololearn browser
26th Sep 2017, 9:53 AM
Aditya
Aditya - avatar
0
bro it doesn't depend on my os it depends on sololearn's browser
26th Sep 2017, 9:56 AM
Aditya
Aditya - avatar