How To Generate a Random Password Using JavaScript | Password Generator JavaScript Project

  Рет қаралды 152,049

GreatStack

GreatStack

Күн бұрын

Пікірлер: 198
@agataerkaeva4226
@agataerkaeva4226 10 ай бұрын
I have just completed the 4th Your lesson - your lessons are amazing. Everything is clear and understandable. Thank you very much for your work!!!! Great job!
@babarshabbir2554
@babarshabbir2554 7 ай бұрын
"Excellent password generator tutorial! Clear, concise, and easy-to-follow. Great job!"
@lizayurchenko786
@lizayurchenko786 Жыл бұрын
To copy password: function copyPassword() { passwordBox.select(); navigator.clipboard.writeText(passwordBox.value); }
@mrmirzaa
@mrmirzaa Жыл бұрын
Thanks, it works for me
@tahashahid4186
@tahashahid4186 Жыл бұрын
Thanks sis
@asrnhalic3802
@asrnhalic3802 Жыл бұрын
thank you
@SachinShrivastav-ix6gb
@SachinShrivastav-ix6gb 8 ай бұрын
Thank you Ma'am for this code
@NO_N500
@NO_N500 6 ай бұрын
thnx liza❤
@Godkabir88890
@Godkabir88890 7 ай бұрын
this is the easiest project , easy to understand for those whole starting making project after learning javascript
@KardanKaaal
@KardanKaaal 4 ай бұрын
Completed this quiz app. Learning ++; Motivation ++; Worries --; Easy for beginners like me ❤
@chizomauzoma69
@chizomauzoma69 2 ай бұрын
Thank you Sir If you want to remove the highlight once the select() is triggered use .display input{ Background: transparent; Color: inherit; }
@RahulKumar-lv3el
@RahulKumar-lv3el Жыл бұрын
function copypassword(){ passwordbox.select(); navigator.clipboard.writeText(passwordbox.value); }
@K3llyrichard
@K3llyrichard Жыл бұрын
thank you very much for this beginner-friendly video. I really learned a lot, thank you very much👏
@KrishanYtM
@KrishanYtM 7 ай бұрын
Best Teacher Clear Explanation 💝
@charonissimo7683
@charonissimo7683 6 ай бұрын
Many thanks for all of your Videos! I love them! Here I want to point to two things: 1) the lines from 32-35 in script.js are no more necessary 2) meanwhile the replacement for "document.execCommand("copy")" could be the Clipboard API of navigator. I am a newbe and please correct me, if I'm wrong. Thanks anyway cheers
@alexsortovlog
@alexsortovlog Жыл бұрын
For the execCommand() function being deprecated I found that by replacing it with contentEditable works but it only selects the text it doesn't copy it. So it will be like this: function copyPassword(){ passwordBox.select(); document.contentEditable("copy"); } try it out if you don't have a problem with copying the password manually. Hope that helps!
@yashnarwar5774
@yashnarwar5774 Жыл бұрын
but the whole point was to having a function in the web app to copy the generated password ...... isn't it?
@ed_badilla
@ed_badilla Жыл бұрын
Here is another way to do it. I added an Id in the img tag and stored in the copyBtn variable. copyBtn.addEventListener("click", () => { navigator.clipboard.writeText(passwordBox.value); });
@hiitsme739
@hiitsme739 Жыл бұрын
Thanks for showing us another way of doing it. I hope it will be helpful for us in another project because document.execCommand("copy") is working on my project.
@ed_badilla
@ed_badilla Жыл бұрын
@@hiitsme739 yes it works but it is deprecated, I’m just sharing an alternative solution
@Shubham_Sinn
@Shubham_Sinn 11 ай бұрын
@@ed_badilla yes, this is the one i used...
@Soulcode-k
@Soulcode-k 3 ай бұрын
What a delight learning This ❤❤❤
@kingofvideosofficial
@kingofvideosofficial 16 күн бұрын
helped a lot ty
@GreatStackDev
@GreatStackDev 15 күн бұрын
I'm so glad! 😊 Keep coding.
@medimed-su3ir
@medimed-su3ir 4 ай бұрын
You are good bro, honestly 💢👌👌
@olawale11954
@olawale11954 Жыл бұрын
Great job I really love all your videos. God bless you.
@kingharji9170
@kingharji9170 4 ай бұрын
Amazing content buddy, Keep it up 🦾👍
@GreatStackDev
@GreatStackDev 4 ай бұрын
Glad you liked it. 😊
@balogunadenike2680
@balogunadenike2680 3 ай бұрын
Thank you! Second project done successfully
@dating_decodedd
@dating_decodedd 5 ай бұрын
loved it! perfect for beginners. Thank you so much!
@Manishaisha-qd3gl
@Manishaisha-qd3gl 7 ай бұрын
very nice explanation
@sonamohialdin3376
@sonamohialdin3376 Жыл бұрын
Very useful tutorial thank you
@iamuzzalhossen
@iamuzzalhossen 7 ай бұрын
Very Easy! Thanks a lot!
@priyapajjuri3517
@priyapajjuri3517 5 ай бұрын
Its amazing it works completely
@Ajjaymahto
@Ajjaymahto 6 ай бұрын
this is very helpfull for me
@GreatStackDev
@GreatStackDev 6 ай бұрын
Glad you liked it. Thanks for your comment. 😊
@LetsStudyWithW_A-tx6qi
@LetsStudyWithW_A-tx6qi Жыл бұрын
Thank You so much for this tutorial
@sandamalgamage1242
@sandamalgamage1242 Жыл бұрын
Thank you for this great tutorial❤❤
@coding_with_sipai_313
@coding_with_sipai_313 4 ай бұрын
My program is successful ❤
@learnwithnagma
@learnwithnagma 9 ай бұрын
Thank you 😊.
@TajjCreative
@TajjCreative 9 ай бұрын
You are doing great
@Mahin_katariya
@Mahin_katariya 10 ай бұрын
The code could run without calculating random of lowecase uppercase numbers and special symbols just use the while loop it will work 💪
@Modrex.Dev0
@Modrex.Dev0 Жыл бұрын
Good Job Man
@Smed_pro_cam
@Smed_pro_cam Жыл бұрын
Thank you for your efforts. I want to make a website like KZbin using html, css and php
@tech.and.coding
@tech.and.coding Жыл бұрын
Thank s a lot sir 😊
@jamilrahmanmowahid7220
@jamilrahmanmowahid7220 7 ай бұрын
Thank you for this video. However, I have a quick question. why did you leave the four lines of code above the while loop which select only four letters. You could simply use only the while loop and it works just fine since we are combining all the uppercase, lowercase, symbols, and numbers with allChars variables.
@ashishkumar-jo7cj
@ashishkumar-jo7cj 11 ай бұрын
Why did you think of keeping the pattern of the password the same? It means that the upper letter will come first and then the lower letter. These too should have been random.
@romerouelle
@romerouelle 5 ай бұрын
fourth project! lets gooooooo
@NanoTroller2
@NanoTroller2 Жыл бұрын
Omg now i have something to show to my teacher
9 ай бұрын
Do you have this code in a document as well? Sometimes it's hard to follow along and see what's in the video even when I change the quality of the video
@fabihasheikh1305
@fabihasheikh1305 9 ай бұрын
Great tutorial
@developing01
@developing01 9 ай бұрын
I'm doing all your projects. Just one question...you could have done the responsiveness part, for when the user accesses via smaller devices, such as a cell phone.
@reninmohan2303
@reninmohan2303 8 ай бұрын
Use media query or clamp function in css
@sdfsfsfd437
@sdfsfsfd437 Жыл бұрын
Great video! 💯💛
@SAMRAT_SNGH
@SAMRAT_SNGH Жыл бұрын
❤❤❤❤❤❤love you bro
@gustavofernandes5275
@gustavofernandes5275 Жыл бұрын
This solves the problem with the execCommand() function copyPassword() { passwordBox.select(); //This is just to make a visual effect navigator.clipboard.writeText(passwordBox.value); //This is the real deal }
@PrathamChaurasia-o8z
@PrathamChaurasia-o8z Ай бұрын
the length should be greater than or equal to 12 @16:12
@ZanderKodehode
@ZanderKodehode Жыл бұрын
Thanks so much🙂
@King_Of_Curses9
@King_Of_Curses9 Жыл бұрын
Somebody explain to me cause my create password method not executing,whenever i click on the generate password it is not generating.
@CanselHermes
@CanselHermes 3 ай бұрын
I did everything but I can't have random number , I cotrolled 2 times but who know where is the my mistake copy function worked but random fuction dont ..... (undefined)
@voiid888
@voiid888 Жыл бұрын
i think the JS code lines from 32 to 35 are useless, it works without it
@FarmanAli-y4x4q
@FarmanAli-y4x4q Жыл бұрын
you are right, I also didn't use these lines and its working properly
@dedicatedrishi
@dedicatedrishi Жыл бұрын
Are you fool ? That is the function which generating random things in js
@nattu_kun
@nattu_kun 2 ай бұрын
Moj 😊
@am1rn
@am1rn 7 ай бұрын
I have a question and it is related to the 2 last videos which is the to-do list app. You mention in the javascript that you can save the data after refreshing and reopening the website. So I usually like to try what I learned from your videos to save the data in the input box which is the password but I failed. So can u explain to me how after clicking the generate password the password in the input box is there even after refreshing and reopening the website. It means a lot if you the creator of this video or any other people reading this helping me. Thanks :)
@dadi_vlogs3254
@dadi_vlogs3254 5 ай бұрын
1 - when you click on the generator input you should call this function to store the data in the local storage. function saveData() { localStorage.setItem("password", input.value); } 2 - after storing this password in the local storage you should call the function that brings this data from the local storage and put id down in the input. function showData() { input.value = localStorage.getItem("password"); } I hope you get it
@am1rn
@am1rn 5 ай бұрын
@@dadi_vlogs3254 it work thanks alot 👍😉
@Spychu1993
@Spychu1993 Жыл бұрын
1:24 - why the font 'Poppins' in in quotes but sans-serif is not?
@srushtipm227
@srushtipm227 Жыл бұрын
beacause sans-serif is inbuilt in vscode and poppings we usually import
@Spychu1993
@Spychu1993 Жыл бұрын
@@srushtipm227 oh ok, thanks!
@reyaguddin3786
@reyaguddin3786 Жыл бұрын
Hello sir, I've created this project by following your tutorial & it's working fine. But I want to this app work perfect in any device (for example: desktop, tablet, mobile, mini-device or other) with responsible. How it Possible? or how can fix this issue?
@51anmolvishwakarma73
@51anmolvishwakarma73 4 ай бұрын
you can use media querrry for ths kind of functionality
@vishalgangde702
@vishalgangde702 Жыл бұрын
execCommand() function is deprecated so used this 👇👇 inputBox.select(); inputBox.setSelectionRange(0, 99999); navigator.clipboard.writeText(inputBox.value);
@umakumarirajput9857
@umakumarirajput9857 Жыл бұрын
UndefinedUndefinedUndefinedUndefined problem, how to fix it?
@bananainacup
@bananainacup Жыл бұрын
Yes me too
@aimanshaikh4368
@aimanshaikh4368 7 ай бұрын
Same problem i am also facing..what to do.."create password is not defined"
@thepralad1484
@thepralad1484 6 ай бұрын
You probably called Math.random() without brackets.
@ManishKumar-jx4tq
@ManishKumar-jx4tq 6 ай бұрын
Lenght convert length 😂😂
@NO_N500
@NO_N500 6 ай бұрын
give code 😂😂
@FullSTACKDev16
@FullSTACKDev16 Жыл бұрын
Very Cool Bro
@shubhamrathod9249
@shubhamrathod9249 7 ай бұрын
Thank you!
@xseenozx3856
@xseenozx3856 Жыл бұрын
can we use their java for password creating code or not and if we creat then how to do with java code
@kshmrkshmr8364
@kshmrkshmr8364 Жыл бұрын
Sir what is your code editor tell me please.
@prabhatraidas2511
@prabhatraidas2511 Жыл бұрын
Vs code bro
@bubairoy5815
@bubairoy5815 Жыл бұрын
Pls. create a tutorial video about Facebook, Instagram video downloader website
@srivigneshcreations.9204
@srivigneshcreations.9204 Жыл бұрын
Tq sir.
@bananainacup
@bananainacup Жыл бұрын
So the different characters don’t need to be an array?
@HinataShiro-l7q
@HinataShiro-l7q 10 ай бұрын
he wrote const lenght = 12:(why he is not getting error ?and my onclick generate password code is not running but my onclick copy code is running plz help me
@melwinsanthosh8135
@melwinsanthosh8135 Жыл бұрын
Bro can you please make a vehicle service system project with database and repair help
@khorshedalam1732
@khorshedalam1732 Жыл бұрын
Hello sir, I've created this project by following your tutorial & it's working fine. Only one confusion that, execCommand() function is working fine but showing deprecated. Is it a problem & how I can solve it?
@Tamanna4140
@Tamanna4140 Жыл бұрын
I am having the same issue. can anyone help with this.
@vedantzanjad
@vedantzanjad Жыл бұрын
function copyPassword() { const copy = passwordBox.value; navigator.clipboard.writeText(copy); } @@Tamanna4140
@vedantzanjad
@vedantzanjad Жыл бұрын
function copyPassword() { const copy = passwordBox.value; navigator.clipboard.writeText(copy); }
@ayushpawar3871
@ayushpawar3871 Жыл бұрын
​@@vedantzanjadthanks bro
@BohemianOnTheRoad
@BohemianOnTheRoad Жыл бұрын
bro you should keep the name easy tutorial.
@alfredkonneh2963
@alfredkonneh2963 Жыл бұрын
Sir how you learned all this html, css and Javascript
@gomeztorricellygomez7808
@gomeztorricellygomez7808 11 ай бұрын
works like charm....
@christopherkibunyi5774
@christopherkibunyi5774 10 ай бұрын
what's the shortcut for writing all symbols and letters?
@orangeapple681
@orangeapple681 10 ай бұрын
So I made a typo (line 12) that kept this from working. Make sure password for the input type id is lowercase so that it can be triggered by the functions, while the placeholder="Password" capitalization doesn't really matter since its just literally telling the HTML the word 'Password' needs to be in the white box. Also there's a typo in line 37 (lenght instead of length). Not sure why that didn't cause issues when he was running the code. The typo is also saved in the tutorial document. while(length > password.length){
@antcannon
@antcannon Жыл бұрын
Very nice video. It would be helpful to slow down alittle bit, although know we can pause and replay.
@readyok8230
@readyok8230 11 ай бұрын
There is also an option to slow down the video playback speed to lower than 1x.
@vedantzanjad
@vedantzanjad Жыл бұрын
Thank You
@abdulbasith1536
@abdulbasith1536 Жыл бұрын
thank you dude
@mohi7109
@mohi7109 Жыл бұрын
how we can show a messaged "copied" when click the copy button?
@JackedHariom
@JackedHariom Жыл бұрын
You have to add alert than it will as a alert
@fede018
@fede018 Жыл бұрын
Why are you doing the java part on the html file? that's not what scrimba teaches. You're not using the characters provided either.
@jansenval
@jansenval Жыл бұрын
why does the password generated only four when i did it?
@majestic775
@majestic775 3 ай бұрын
Which theme is this?
@mahesheditz
@mahesheditz Жыл бұрын
thankyou sir
@FlyhighBigwings
@FlyhighBigwings Жыл бұрын
execCommand in the function "copyPassword" doesn't work, is there any other way to go about this cause when I try to paste I don't get what I copied
@FarmanAli-y4x4q
@FarmanAli-y4x4q Жыл бұрын
function copyPassword() { const copy = passwordBox.value; navigator.clipboard.writeText(copy); }
@sougatalegend6601
@sougatalegend6601 2 ай бұрын
I used api to do this
@vishalbhardwaj4999
@vishalbhardwaj4999 7 ай бұрын
Can anybody explain me the javascript part... What is the alternative to document.getelementbyId
@yihffjjg
@yihffjjg 6 ай бұрын
It is used when you have something in "id="
@Islamic_content92
@Islamic_content92 Жыл бұрын
Source code plzz😢
@SILENTKILLER84838
@SILENTKILLER84838 Жыл бұрын
Hi sir AAP muje coding ki file deskte ho kay he vali
@mek059
@mek059 8 ай бұрын
Why is the input type for the password is text instead of password?
@sumitraina24
@sumitraina24 7 ай бұрын
Because you want to generate the password here and hence the password should be visible to us . if you place type as password instead of text then the password will be encrypted .
@cpl2116
@cpl2116 9 ай бұрын
How do i get the font poppins?
@utinthein7274
@utinthein7274 Жыл бұрын
In my vscode (execCommand) is line-through, Why? Sir.
@yashnarwar5774
@yashnarwar5774 Жыл бұрын
Same here please let me know if you find the reason or the solution
@PhurailatpamGirishSharma27
@PhurailatpamGirishSharma27 5 ай бұрын
execCommand is not working in my VS code, it's not allowing me to write it
@PedrPie
@PedrPie 4 ай бұрын
The same is happening with me. There is a line through it and it doesn't work.
@niranjanvanka376
@niranjanvanka376 Жыл бұрын
Please create animation forms
@kazutoravfx
@kazutoravfx 5 ай бұрын
the lines of code from line 32 to 35 are practically useles...
@Haat02
@Haat02 5 ай бұрын
Why 😮😮😮😮
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd Жыл бұрын
awesome
@mahimkhan9561
@mahimkhan9561 8 ай бұрын
mine is not working
@Sporty1877
@Sporty1877 Жыл бұрын
Generate password is not working. The error code displayed from the console is that "Math is not defined " 😢 Someone should help me please 🙏
@FlavorsofLifeVlogs
@FlavorsofLifeVlogs Жыл бұрын
how Can I Display message "Message copied" on clicking in copy icon . Can any one help me with this Please
@rajnikantjoshi6697
@rajnikantjoshi6697 Жыл бұрын
i have to restart my browser to refresh the page, how can i set it to Auto refresh
@rounakyadav17
@rounakyadav17 Жыл бұрын
Same
@yashnarwar5774
@yashnarwar5774 Жыл бұрын
dowload the live server extention in vs code and then right click in the html file you will find the option for the live server somewhere in the bottom ........ walllhaaa propblem solved
@vrzshortcreator8478
@vrzshortcreator8478 Жыл бұрын
I have written all code exactly in what manner you did but ,it is not working 😢
@purpleshinee7700
@purpleshinee7700 10 ай бұрын
I am facing the same issue
@rajesh__singh
@rajesh__singh 10 ай бұрын
Just take the idea bro don't copy exect 😂
@KiranKumar-zt9mn
@KiranKumar-zt9mn 9 ай бұрын
​@@rajesh__singh bro thanks for this suggestion thank you very much great
@musabpatel8621
@musabpatel8621 Жыл бұрын
Font Theme?
@asrnhalic3802
@asrnhalic3802 Жыл бұрын
doesn't work copy for me please help
@varshavarshu2231
@varshavarshu2231 11 ай бұрын
swappy swappy
@shamrankatalemwa7005
@shamrankatalemwa7005 7 ай бұрын
Mine is not working how to fix
@adxxsh735
@adxxsh735 9 ай бұрын
I want to reset the password into a blank again as soon as I click on copy? Any suggestion anyone?!
@reninmohan2303
@reninmohan2303 8 ай бұрын
Try Create a button for on click the button and set input element inner text to empty string.
@anujchaudhary4724
@anujchaudhary4724 4 ай бұрын
Add event listener of that copy clipboard icon when you clicked it just remove that password eg password.innerText =''
@akifdalhan2451
@akifdalhan2451 Жыл бұрын
undefinedundefinedundefinedundefined problem?
@bananainacup
@bananainacup Жыл бұрын
Bruh same
@filipriess1271
@filipriess1271 Жыл бұрын
same bro, idk what to do xd
@subegsingh5658
@subegsingh5658 Жыл бұрын
if i want the user to give me number of characters for the password, how do i do it. I'm trying (" Number of characters: var userInput = document.getElementById("char_input").value; var length= userInput; "). can anyone please help me out
@FarmanAli-y4x4q
@FarmanAli-y4x4q Жыл бұрын
you are doing correct but just put that code" var userInput = document.getElementById("char_input").value; " inside function
How To Build Notes App Using HTML CSS and JavaScript
25:21
GreatStack
Рет қаралды 151 М.
How To Build Age Calculator App Using HTML CSS And JavaScript
23:26
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 843 М.
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 1,5 МЛН
JavaScript Project | News Search App With JavaScript API
1:07:09
10 years of coding in 13 minutes
13:28
Joma Tech
Рет қаралды 5 МЛН
7 Design Patterns EVERY Developer Should Know
23:09
ForrestKnight
Рет қаралды 151 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН