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 🤗💕💕
+ 11
Nope i don't know Firebase 😆😅
ChatBot 1hr that's that's good 🤗💕💕 Good Luck sis 😆
+ 10
Pikachu(you must heard my name) use let or const keyword , replace var
+ 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 🤗💕💕
+ 7
Pikachu(you must heard my name) No pb for me 😊
+ 5
Pikachu(you must heard my name) You are getting wrong name length which should be 10 but coming more than 130
+ 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
+ 4
Pikachu(you must heard my name) It's work now !
+ 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
+ 3
U can make a dictationary
+ 2
Hi, I'm Nikita
0
Hola soy un niño de 11 pero quiero aprender a programar necesito ayuda you help
- 1
I have done necessary changes
- 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
- 2
Fixed. name should be an object not a string.
https://code.sololearn.com/WzMKN9URoMrV/?ref=app