Using a Wordle clone to understand local storage in Javascript

  Рет қаралды 4,840

Ian Lenehan

Ian Lenehan

Күн бұрын

Пікірлер: 36
@sonja8436
@sonja8436 Жыл бұрын
Thank you for this! I've been working on a wordle clone in my native language and this will be super useful!
@petehayman
@petehayman Жыл бұрын
Thanks for these tutorials - amazing stuff and super appreciated.
@IanLenehan
@IanLenehan Жыл бұрын
Glad you like them!
@MrVinicius191
@MrVinicius191 2 жыл бұрын
Thanks for the tutorial. It's nice how you keep the code in multiple functions.
@IanLenehan
@IanLenehan 2 жыл бұрын
Thanks Vinicius!
@mrredmond
@mrredmond Жыл бұрын
great tutorial. thank you so much!
@zgjim4700
@zgjim4700 2 жыл бұрын
This helped so much while building something similar to Wordle, perfectly explained, new sub
@IanLenehan
@IanLenehan 2 жыл бұрын
Great! Glad it was useful to you :-)
@jackpx24
@jackpx24 2 жыл бұрын
Another great video, thank you!
@IanLenehan
@IanLenehan 2 жыл бұрын
Thanks Jack!
@castbr
@castbr 2 жыл бұрын
This is amazing! I would love more JS projects; I feel working on specific projects is the best way to learn. Thanks again!
@IanLenehan
@IanLenehan 2 жыл бұрын
No worries, glad you enjoyed it!
@jakewheat2786
@jakewheat2786 2 жыл бұрын
Thanks so much for looking into all of this. Very interesting. I'm going to test out on my own if you don't mind. Thanks
@IanLenehan
@IanLenehan 2 жыл бұрын
Yeah go for it, good luck!
@ccdtech5394
@ccdtech5394 2 жыл бұрын
Great tutorial, thanks
@IanLenehan
@IanLenehan 2 жыл бұрын
Thanks!
@Jonsy
@Jonsy 2 жыл бұрын
Hey there, Great tutorial, amazing explanation. Thank you very much for this! I have learned so much with this two videos. One small thing, i went over the code and couldn’t find anything dealing with the problem of the same letters turning yellow even though we have only one in the original word. For example: if i have the word “dairy” and i will insert “ddddd” i will get the first ‘d’ in green and the other four in yellow. Thank you so much in advance you are great ❤️
@IanLenehan
@IanLenehan 2 жыл бұрын
Hey Jonathan - I'm glad you have enjoyed these videos! Unfortunately I picked up the issue with the colours between these videos, but if you look at the code (linked in the description) for this local storage video, you should be able to find where this is fixed.
@AdamPearce-t4f
@AdamPearce-t4f 2 жыл бұрын
Great tutorials How would you restrict it so that on a win, the reset gamestate doesnt happen until midnight / the next day like in wordle?
@IanLenehan
@IanLenehan 2 жыл бұрын
I'd suggest something like an array with some word objects that contain the word and a date. Like words = [{ date: 2022-02-01, word: 'hello' }] and just run a function getWord when the page loads that gets the word with the date that is the same as today's date.
@roulettered56
@roulettered56 2 жыл бұрын
Yeah I watched the whole video just for this
@a_lil_hazy
@a_lil_hazy 2 жыл бұрын
Hi there! I am interested in learning about front-end developing softwares such as JS, CSS, and HTML. Where would be a good place to actually put the code itself, so that it can run? Thank you!
@IanLenehan
@IanLenehan 2 жыл бұрын
Hey Datacord! The best place to do it as on your computer with a tool like VS Code. But you can also try a repl - something like JS Fiddle or codepen. Good luck!
@SameerAbbasMughal
@SameerAbbasMughal 2 жыл бұрын
There is no source code link in description.
@IanLenehan
@IanLenehan 2 жыл бұрын
Oh man you’re right. Just added it! github.com/ianlenehan/wordle-clone/pull/2
@SameerAbbasMughal
@SameerAbbasMughal 2 жыл бұрын
@@IanLenehan Thanks Sir!
@jrgoficial
@jrgoficial 2 жыл бұрын
Hey Your 2 videos abour wordle are absolutely helpful! thank you so much... could you tell me how can i create a final screen where people can click copy and paste their results on social media like on twitter for example? Sorry if im asking too much but im a rapper not a coding guy hahah thanks bro!
@IanLenehan
@IanLenehan 2 жыл бұрын
Haha rapper not a coder, that's the best line! Sounds like you're both? Glad you found the videos useful! The end result of the code after this local storage video is that the screen shows the score and an empty board with just the colors, with the idea being you could screenshot it if you want. To be honest I hadn't put much thought into how the share feature could work as it does in the real game.
@uberbuilder24
@uberbuilder24 2 жыл бұрын
Hey! I've watched the first tutorial, and I started the second, but I didn't see you create the currentWordIndex variable in part 1. The first thing you do is use currentWorIndex, but I never saw it being created. I also checked GitHub for part 1, and there was no variable. Can you assist me? Thanks!
@IanLenehan
@IanLenehan 2 жыл бұрын
Hey yes I made some changes and improvements to the code between the two videos. The game in this video is set up now to use a fixed words array and not an external API so the code works a little bit differently. I apologise if it's confusing! This video is really about using Local Storage so I didn't go into much detail about the changes I had made between videos.
@uberbuilder24
@uberbuilder24 2 жыл бұрын
@@IanLenehan Okay, thank you so much, sir. By the way, great tutorial!
@IanLenehan
@IanLenehan 2 жыл бұрын
@@uberbuilder24 thanks!
@bluepants8140
@bluepants8140 2 жыл бұрын
@@IanLenehan Does it matter if we change the code from what you changed between videos?
@bluepants8140
@bluepants8140 2 жыл бұрын
Does it matter if you change the code?
@IanLenehan
@IanLenehan 2 жыл бұрын
If you clone the repo, you can change the code as much as you like!
@bluepants8140
@bluepants8140 2 жыл бұрын
@@IanLenehan Thank you so much!
Try these in your next Javascript project!
6:32
Ian Lenehan
Рет қаралды 311
Build a Wordle clone using HTML, CSS & Javascript!
43:40
Ian Lenehan
Рет қаралды 43 М.
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 34 МЛН
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 20 МЛН
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Remix & Firebase - using Firebase Auth and Firestore with Remix
14:17
Learning React, Typescript, Tailwind and Vite with Tic Tac Toe
28:33
How To Create A 7 Figure Business Idea In One Hour
59:46
Web Dev Simplified
Рет қаралды 102 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 73 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 722 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Next.js 15 Breakdown (Everything You Need To Know)
18:10
Web Dev Simplified
Рет қаралды 16 М.
Should you use Bun, Deno etc. instead of Node.js?
7:28
Maximilian Schwarzmüller
Рет қаралды 25 М.
Build a Wordle Clone in JavaScript HTML CSS
36:13
Kenny Yip Coding
Рет қаралды 31 М.
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 34 МЛН