How do I use the prompt command after inputting an array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I use the prompt command after inputting an array?

I have finished my array but right when I put in the prompt(), I use the document.write and don't know what to put in the parentheses inside the document.write command. https://code.sololearn.com/WtTx6mbodYxy/?ref=app

6th Sep 2018, 9:35 AM
HydroShock
HydroShock - avatar
5 Answers
+ 4
Do you want this ? https://code.sololearn.com/WdD9X2EUbQqe/?ref=app Hope it helps ☺️☺️.
6th Sep 2018, 9:47 AM
Meet Mehta
Meet Mehta - avatar
+ 1
What do you want to print? Do you want user to enter number from 0 to 364 and print corresponding data from array i.e particular date?
6th Sep 2018, 9:44 AM
Meet Mehta
Meet Mehta - avatar
+ 1
Yes I'm having trouble with that. I tried putting just "date" on document.write but it shows the entire array. After the user puts a number, only one date is supposed to appear under a certain number.
6th Sep 2018, 9:47 AM
HydroShock
HydroShock - avatar
+ 1
Sweet Relish, thank you! 😁😇
6th Sep 2018, 9:50 AM
HydroShock
HydroShock - avatar
0
:)
6th Sep 2018, 9:52 AM
Meet Mehta
Meet Mehta - avatar