Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12
hehe 😂Pikachu(you must heard my name) guess i was late then 😂😅 Anyway Good Luck with your new codes 😊 You making awesome FireBase code these days 😄😆 Teach me too 🤗💕💕
27th Jul 2020, 8:49 AM
Aakaanksha 💕 [TheBraveCoders]
Aakaanksha 💕 [TheBraveCoders] - avatar
+ 11
Nope i don't know Firebase 😆😅 ChatBot 1hr that's that's good 🤗💕💕 Good Luck sis 😆
27th Jul 2020, 9:04 AM
Aakaanksha 💕 [TheBraveCoders]
Aakaanksha 💕 [TheBraveCoders] - avatar
+ 10
Pikachu(you must heard my name) use let or const keyword , replace var
27th Jul 2020, 8:08 AM
Amardeep kesharwani
Amardeep kesharwani - avatar
+ 10
Pikachu(you must heard my name) Just a suggestion dear if name and id is mapped to a user then why don't u use an array of objects like this: https://code.sololearn.com/Wfj7qe3NA1T2/?ref=app see this way it's more clearner and optimised 🤗💕💕
27th Jul 2020, 8:33 AM
Aakaanksha 💕 [TheBraveCoders]
Aakaanksha 💕 [TheBraveCoders] - avatar
+ 7
27th Jul 2020, 8:14 AM
Wixonic (contact: description)
Wixonic (contact: description) - avatar
+ 5
Pikachu(you must heard my name) You are getting wrong name length which should be 10 but coming more than 130
27th Jul 2020, 8:09 AM
A͢J
A͢J - avatar
+ 4
Hello Pikachu(you must heard my name) ! I have to offer you a function that I created a while ago and that I use in all my projects ! 😊 Also, in your code, you put "name.length" and I changed it to "id.length" and "var" to "let" You can modify my code as you want ! But I think he works like this 😄 https://code.sololearn.com/WmA916mlbDGE/?ref=app
27th Jul 2020, 8:07 AM
Wixonic (contact: description)
Wixonic (contact: description) - avatar
27th Jul 2020, 8:12 AM
Wixonic (contact: description)
Wixonic (contact: description) - avatar
+ 3
"name" is a reserved property name and should be avoided for use as a variable. If you change it to any non reserved word it should work fine
27th Jul 2020, 8:10 AM
JME
+ 3
U can make a dictationary
27th Jul 2020, 9:09 AM
Anurag Jain
Anurag Jain - avatar
+ 2
Hi, I'm Nikita
28th Jul 2020, 6:59 AM
nikita
nikita - avatar
0
Hola soy un niño de 11 pero quiero aprender a programar necesito ayuda you help
28th Jul 2020, 1:36 PM
Lisandro Ramirez
Lisandro Ramirez - avatar
- 1
I have done necessary changes
28th Jul 2020, 5:38 AM
Raj Dere
Raj Dere - avatar
- 1
// Created by Pikachu(you must heard my name) const name=["Pikachu(you must heard my name)","Aakaanksha 💕" ,"😉Krishna🤘(📴)" ,"Namit Jain" ,"MiKoLa🔥" ,"𝐏𝕣ⅈꪀᥴꫀ🤘" ,"🇮🇳•.¸♡ RK ♡¸.•" ,"SR‎ " ,"BroFar" ,"AJ #L1G3"]; const id=[18608933,12942084,18634831,18109487,15221666,15404118,6804430,7109620,7885877,7920723]; var kk = Math.floor(Math.random() * name.length); document.write("rand no:"+ kk +"<br>"+'name:'+name[kk]+"<br>Id:"+id[kk]); This is the answer
28th Jul 2020, 5:40 AM
Raj Dere
Raj Dere - avatar
- 2
Fixed. name should be an object not a string. https://code.sololearn.com/WzMKN9URoMrV/?ref=app
28th Jul 2020, 7:10 PM
\•/
\•/ - avatar