Build Typing Game with Javascript

  Рет қаралды 16,997

Coding With Dawid

Coding With Dawid

Күн бұрын

Пікірлер: 32
@justinfisher5339
@justinfisher5339 Жыл бұрын
Hey Dawid, great video. Just a tip for those who are reading this: the event -> "keydown" is much more responsive to typing especially with case sensitive words.
@AvikNayak_
@AvikNayak_ Жыл бұрын
the cursor stays on the left side of the screen not on the first letter when i start the game also whenever I click on the newgame button the cursor disappears. how to fix this?
@PinkeySuavo
@PinkeySuavo 2 ай бұрын
Thank you! in 12:48 I have issues: (...).split(separator:' '); document.getElementById(elementId:'words') (...) document.getElementById(elementId:'words') (...) All say there's error and "," is excepted. I have ":" underscored as error. I dont know what's the problem. ------------------------------------------------------------ EDIT: I don't know if I solved it correctly, but seems to work. It seems like you don't need "separator", "elementId" keywords. I wrote it just like this: (...).split(' '); document.getElementById('words') (...) document.getElementById('words') (...) It will be the same in other functions like in 22:24, I don't add "listener:" keyword ------------------------------------------------------------ Next issue: in 13:30 I get a lot of "undefined" words for some reason :c I somehow managed to solve it by changing randomIndex: const randomIndex = Math.ceil(Math.random() * wordsCount) - 1; I think in 33:47 you solve it but in a kind of different way ------------------------------------------------------------
@akashvp1264
@akashvp1264 Күн бұрын
yes, it shows 'separator' adn 'elementID' is because of code editor he is using or may be he is using typeScript. but yeah that shouldnt be added
@PinkeySuavo
@PinkeySuavo 19 сағат бұрын
@@akashvp1264 damn I forgot I even tried to program this :D
@LovepreetSingh-mf1el
@LovepreetSingh-mf1el Жыл бұрын
hello dawid, when at the last letter, i pressed the last letter correctly but it added that letter as the incorrect letter also.
@navratanyadav5378
@navratanyadav5378 Ай бұрын
20:38 amazing trick
@hokagnay4340
@hokagnay4340 Жыл бұрын
Hello! I think you did a great job with this video! I have a question though, I was looking through the comment section and found the comment noticing the bug and the solution to delete a previous child when it is incorrect, it worked for me flawlessly. Although, I'm running into a similar issue when I hit the space bar after typing in a incorrect key that it doesn't erase the previous value that you input on the previous word. For example: if the word is "there" and I type "theree" and backspace to try to delete it, it will change the word to "theree" as the correct value when you try to go to the next word. Not sure if that made sense. I hope it did. Any solution to this problem? I have been trying to debug this for a couple days now (I'm a beginner) and would like some help. Any help is appreciated. Thank you again for your hard work!
@henriqueantonelo435
@henriqueantonelo435 6 ай бұрын
Hey man, did you find how to do it?
@francescafalciantacle2062
@francescafalciantacle2062 2 жыл бұрын
Hi! Thank u so much for this content, its help me a lot. I found a issue that maybe you forgot it: when you have an extra letter we cannot remove it if we press backspace so I fixed it like this.. document.getElementById("game").addEventListener("keyup", (e)=>{ const isExtra = document.querySelector(".letter.incorrect.extra"); if(isBackSpace){ if(isExtra){ currentWord.removeChild(isExtra) } } I dont know if is correct, I am a begginer. greetings from Argentina
@CodingWithDawid
@CodingWithDawid 2 жыл бұрын
I havent tested but your code looks nice! Good job! Yes, there are definetly some edge cases or bugs that i have forgot to cover and test but i am glad that you could fix it yourself ☺️
@Gloggles
@Gloggles 2 жыл бұрын
@@CodingWithDawid Hello, since you are making a tutorial on how to code this could you release the files to make it easier for me, please respond, thanks!
@manjindersingh7087
@manjindersingh7087 Жыл бұрын
I was searching for this solution. Thanks a lot. 😇
@johnpaulrayco1366
@johnpaulrayco1366 5 ай бұрын
@@manjindersingh7087 did it work? because for me it didn't
@Peter_masih
@Peter_masih 5 ай бұрын
@@johnpaulrayco1366 yes for me also not working
@HatakeKakashi10
@HatakeKakashi10 2 жыл бұрын
so amazing thank you so much sir
@AvikNayak_
@AvikNayak_ Жыл бұрын
whenever I click on the newgame button the cursor disappears.how to fix this?
@Sandeep-vm4pb
@Sandeep-vm4pb Жыл бұрын
Thank you, Dawid for this video. Could you please tell me what IDE or platform you are using to make your project?
@AvikNayak_
@AvikNayak_ Жыл бұрын
the cursor stays on the left side of the screen not on the first letter when i start the game also whenever I click on the newgame button the cursor disappears. how to fix this?
@Matfi93
@Matfi93 10 ай бұрын
Sublime text editor
@joshuamaebanyamasege9437
@joshuamaebanyamasege9437 8 ай бұрын
Amazing
@jif3847
@jif3847 2 жыл бұрын
What is the name of the extension that you are using in the video that tells you the types that you have to enter. Like when you are calling it function it will show what the params you have to fill.
@CodingWithDawid
@CodingWithDawid 2 жыл бұрын
Its not an extension. Its already built in in my IDE (webstorm)
@hannibalbianchi1466
@hannibalbianchi1466 2 жыл бұрын
You are the most amazing programmer that I've ever seen all respect I appreciate your efforts.
@vithaniyug1697
@vithaniyug1697 4 ай бұрын
Thank you so much for your help ... Thank you so much... If you have any work for me, tell me...
@Gloggles
@Gloggles 2 жыл бұрын
Hello, since you are making a tutorial on how to code this could you release the files to make it easier for me, please respond, thanks!
@CodingWithDawid
@CodingWithDawid 2 жыл бұрын
github.com/dejwid/js-typing-game
@Gloggles
@Gloggles 2 жыл бұрын
@@CodingWithDawid Thanks, appreciate it a lot :)
@Gloggles
@Gloggles 2 жыл бұрын
is it me or why is it running slowly
@health_doc
@health_doc 5 ай бұрын
nice
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 565 М.
7 ways to deal with CSS
6:23
Fireship
Рет қаралды 1,1 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 95 МЛН
Inside Out 2: BABY JOY VS SHIN SONIC 3
00:19
AnythingAlexia
Рет қаралды 8 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 66 МЛН
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17
Build an e-commerce site... with a twist - Web Dev Challenge S1E3
26:20
Learn With Jason
Рет қаралды 158 М.
Dynamic numbering with CSS counters
12:04
Kevin Powell
Рет қаралды 11 М.
Build A Speed Typing Game With JavaScript - Tutorial
26:36
Web Dev Simplified
Рет қаралды 105 М.
Only Noobs Build Beautiful Websites
18:13
Sajid
Рет қаралды 136 М.
how to study less and get higher grades
11:16
Gohar Khan
Рет қаралды 165 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,8 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 95 МЛН