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

22nd Oct 2021, 7:31 AM
Adarsh Kumar
Adarsh Kumar - avatar
4 odpowiedzi
+ 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
22nd Oct 2021, 1:41 PM
zexu knub
zexu knub - avatar
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.
22nd Oct 2021, 10:12 AM
zexu knub
zexu knub - avatar
22nd Oct 2021, 1:15 PM
Adarsh Kumar
Adarsh Kumar - avatar
- 1
I added html, css and js only and i think that should be enough and this code is only for pc
22nd Oct 2021, 1:16 PM
Adarsh Kumar
Adarsh Kumar - avatar