Help me program this code in JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help me program this code in JavaScript

✓ when a start button is clicked, you have to display the elements from a file ✓ then start randomise the elements ✓ display them randomly on page. ✓ This should work until a stop button is pressed

20th Aug 2018, 4:26 AM
v hj gfjjf
4 Answers
+ 3
JavaScript cannot read file contents automatically.
20th Aug 2018, 6:42 AM
Calviղ
Calviղ - avatar
+ 1
.... in browser you cannot do (except using some browser extension mechanism)... If js is a must, maybe you have to see node.js
20th Aug 2018, 6:59 AM
KrOW
KrOW - avatar
+ 1
It's possible if load the file manually, use this code to manually load a text file. https://code.sololearn.com/W6Dz0lW21RQv/?ref=app Only work on PC browsers.
20th Aug 2018, 7:35 AM
Calviղ
Calviղ - avatar
0
please help me
20th Aug 2018, 7:33 AM
v hj gfjjf