0
I want to create a typing speed calculator using vanilla js only but got stuck on something
I'm using a file named words.txt that contains 1000 random words and adding it to js using fetch function but I'm not able to compare the input of user to the words from words.txt, reasons are coz I'm not getting words from fetch function outside
4 Réponses
+ 1
Adarsh Kumar You don't use text in fetch API instead use any valid JSON URL to accept the get request.
Read More About fetch API. https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
0
Add your code in the description so that we can see the code and try to debug it.
& Great concept i might as well do it.
- 1
I added html, css and js only and i think that should be enough and this code is only for pc