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
4 Answers
+ 3
JavaScript cannot read file contents automatically.
+ 1
.... in browser you cannot do (except using some browser extension mechanism)... If js is a must, maybe you have to see node.js
+ 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.
0
please help me