Dude. I want you to teach me every single topic that I have ever wanted to know.You're awesome.
@NASSIMELBOUJJOUFI6 жыл бұрын
The best teacher ever
@arnobchowdhury96416 жыл бұрын
Every time i watch one of your tutorials, i think to myself that it would be great if you had taught native Javascript (cause i am trying to learn it now). your videos are so well explained and yet so much fun to watch. Thank you sir.
@anmolarora50266 жыл бұрын
finally im not the only programmer that gets sidetracked while talking
@Cambaudio6 жыл бұрын
Thanks so much! None of the other videos or articles I read made sense or got my timing to work but yours did! I was finally able to after many hours make the loop I wanted. You have an awesome teaching ability. Again thank you so much.
@gary35484 жыл бұрын
Every time I watch one of your videos you make me smile and feel great. You are awesome! I need to watch more of your videos! So much more passion than the other coders out there!
@abdelrahman50945 жыл бұрын
you have an amazing way for explanation which makes you the best on youtube
@bejisan15 жыл бұрын
Placing all my cloud function code inside the setTimeout 1st parameter did the trick for Node.js. Just needed to delay my datasnapshot by 3 seconds for it to catch up with my callbacks finishing writing to the database. Thx a lot, spent all day on it, and there were not many threads about it on stackoverflow. You saved what little is left of my sanity. /subbed to this channel.
@CivicYt6 жыл бұрын
I LOVE setTimeout. Can do so much for interactive things.
@koteswararao21825 жыл бұрын
Good way of explanation.. very friendly and easy to understand in simple terms.
@somtovitus4 жыл бұрын
this guy breaths codes!
@goldthumb Жыл бұрын
I like the recursion between setTimeout() and rainbow() in this example.
@greendaydave12105 жыл бұрын
I had to delay audio for my app. This helped immensely!! Thanks!!!
@donutbedum98373 жыл бұрын
wow. just wow. that was the most detailed explanation of anything i've ever heard of. wow thanks
@alexblue85245 жыл бұрын
this guy have good vibe, best teacher
@JOHN6114 жыл бұрын
OMG you are so good at explaining!
@guesminesrine74423 жыл бұрын
you have an amazing way for explanation , you are so funny , suddenly i love Javascript , i was looking for a video to understand and i've got you , Now im your student :D
@mahtabali46293 жыл бұрын
this is the most fun and useful video i have ever watched
@samirghassane56545 жыл бұрын
very simple and good explanation thanks dude
@keesdejong5712 Жыл бұрын
this guy explain things like he is the long kid from the crazy frog video.
@Kim-xz7oz6 жыл бұрын
i like the way you teach its not boring
@christianwondeson84802 жыл бұрын
your energy is amazing
@makagyngrimm33927 жыл бұрын
Is there any thing where the code will pause until something else is clicked by user?
@makagyngrimm33924 жыл бұрын
@Marco Estors Lol
@carmencastro55125 жыл бұрын
este tipo me encanta, hace muy agradable el aprendizaje de algo que me parece difícil...
@Elena-ht9ds3 жыл бұрын
you saved my exam
@terracoon98823 жыл бұрын
omg you have an exam in code! I want that to! better than netherlands...
@polditeref51624 жыл бұрын
I think Him and Dev Ed looks good for coloboration.
@_Psycho_logic Жыл бұрын
Bro I like your ENERGY ❤
@jboyle4535192 жыл бұрын
finally a real explanation thank you thank you thank you
@computewitharjun4 жыл бұрын
02:03 the prefix comes from the Latin mille, meaning "one thousand" (the Latin plural is milia).
@shpetimgashi75313 жыл бұрын
In french it is Mille to say one thousand 👍👍
@tangflx6 жыл бұрын
Daniel i watched all your vid not to lesrn but to see how funny you are. Lol. I love rainbows now
2 жыл бұрын
Thank you very much. You really helped me to understand this topic.
@tonifranke38682 жыл бұрын
fav KZbinr now👍
@doniarabii55205 жыл бұрын
I love the way you explain things and simplify them
@thealpha25033 жыл бұрын
One million rainbows done and another million on the way.
@aliaslani4529 Жыл бұрын
The best best best best teacher❤❤❤❤❤❤❤
@parijatsaha39773 жыл бұрын
Awesome way of teaching :)
@FieelFlying7 жыл бұрын
Awesomely explained thank you!
@bajtucha2 жыл бұрын
Nice video but I believe that it is a little bit oversimplified. You have no guarantee that callback function will run at the time you've set. You may be certain that it won't run before it but due to the mechanism behind it (task queue->event loop->stack) you should not rely on it.
@nikkonikko3714 жыл бұрын
Watching this when you're almost 1 million subs! So close!
@jadaneberly38524 жыл бұрын
super awesome tutorial, you are a great teacher !!
@terracoon98823 жыл бұрын
I really love your videos best teacher ever but can you set setTimeout to 0? to execute fast?
@leah.47832 жыл бұрын
I want to code a jump and run and Iˋm new to coding. The ball goes up if the spacebar is pressed and I want it to come down after some time. SetTimeout doesnˋt work. What else can I do??
@thebrain6784 жыл бұрын
I was kinda stuck on how the code kept running every second but then it hit me. It's cause rainbow function keeps calling itself in a infinite loop. You made your own setinterval function. You could of got the same result with setinterval(rainbow, 1000) in setup.
@abcdef-bz7ew2 жыл бұрын
Thanks for clearing my doubts. I was confused on that part as well
@Dat2Phit4 жыл бұрын
If you want to setTimeout to draw function do this: noLoop(); setTimeout(loop,1000);
@villurignanesh84583 жыл бұрын
I wanted to somehow pause the set timeout can I do it? I need help
@vennilav18905 жыл бұрын
Hi Daniel, I'm wondering why isn't setTimeout() working for draw function? Or are there other ways to stop draw() function for a couple of seconds?
@TheCodingTrain5 жыл бұрын
Take a look at noLoop() and loop().
@shaunbegley928 жыл бұрын
Hey Daniel! That's a handy looking keyboard shortcut where you commented out a chunk of highlighted code. What is it? EDIT: Nevermind, I worked it out. Ctrl + / for anyone else wondering.
@TheCodingTrain8 жыл бұрын
Glad you found it!
@sadhlife7 жыл бұрын
The Coding Train, Do Atom or Brackets have a shrotcut for auto format?
@tanishq27664 жыл бұрын
@@sadhlife ctrl shift I
@sadhlife4 жыл бұрын
@@tanishq2766 it's been 3 years, I don't use those editors anymore, but thanks
@nelohenriq2 жыл бұрын
How can i run a p5.js script for a certain number of seconds and then save the canvas and restart the script? run the script for 60 secs, save the canvas and restart script, so it's a loop or a while, while time is not 60 secs the script runs, then saves the canvas an restarts again for other 60 secs
@aloksingh41104 жыл бұрын
I have a doubt, while using on a personal project, I noticed setTimeout(function, time) works but setTimeout(function(), time) does not. How can we pass a function in setTimeout with some value in it's parameters. i.e. how to make setTimeout(line(x1,x2,y1,y2),1000); work?
@ShaDoWChornos4 жыл бұрын
is there a version of that screen where he can have live test of his coding ? for windows
@EMonzon6 жыл бұрын
what about passing functions with arguments into a setimeout() or setInterval()? will it work out?
@ehsanag58374 жыл бұрын
The third argument can be used to pass a variable to the function
@sgamer17703 жыл бұрын
Where did the createP function come from?
@donfeto76366 жыл бұрын
I wish all i wish is just You could teach us those thing but with out p5.js cuz i don't use it and i don't relate most of things which draw etc Btw You are Awesome Professional.
@emilbedreddinli18435 жыл бұрын
What if I write draw() function as a parameter of setTimeout() ?
@bryanDevsJS Жыл бұрын
great video! thanks
@i.i6 жыл бұрын
hi dan I think you have no video about bind() in javascript please make one
@sunnypatel42735 жыл бұрын
i need help!!!! how to auto close a popup windows set time:30 after close ?????
@jameschannel011823 жыл бұрын
what if I wanted it in hours instead of milliseconds?
@moedeus1117 жыл бұрын
can someone tell me if its ok to use setimeout into the function ? cos its open a function into the function and again and again i think he is using to much recursion
@salihkurtov5265 жыл бұрын
Thanks!
@Karthik-pj6fg7 жыл бұрын
can u tell me how to do array for a image,which is image collision on map for gaming purpose,i asked so many youtubers on this topic but they didnt gave correct response,hope u will answer
@kiranreddy72726 жыл бұрын
Thank u but iwant to timer stop in specific web site count down time for submit button
@EMonzon6 жыл бұрын
rainbows to all! haha!
@richochet Жыл бұрын
Can someone explain why does it loop over and over?
@yytke6 жыл бұрын
I use the p5.js CDN in html And follow your code,but my chrome console told me that createP is not defined.... Should I import something instad of CDN? Thank you in advance
@TheCodingTrain6 жыл бұрын
Do you have p5.dom.js?
@yytke6 жыл бұрын
The Coding Train Thank you,sir. When I install p5.dom.js ,everything is OK. Thank you,you are my hero
@BrettClimb8 жыл бұрын
This is really useful. Is there an equivalent function in Processing/Java? If so, do you have a video that uses it?
@TheCodingTrain8 жыл бұрын
Not really, but you can achieve the same results with threads and method reflection. It's infinitely more painful!
@BrettClimb8 жыл бұрын
That's too bad, I guess Java isn't really designed for that. I've seen some people suggest using the Timer class, which is probably what you're referring too, so I think I'll try that.
@odetomy6 жыл бұрын
I need help. I am completely new to coding and I'm getting frustrated. No offense to the teacher, because I must be missing something here. This did not work for me. All I want is a code that will execute different words at different intervals of time. I need this for a project I'm working on. For instance: at 10 seconds the word "Hi" pops up on the screen, then at 5 seconds the word "good" pops up, then at 3 seconds the word "baby" pops up, etc. I'm just using those words as random examples. I have looked all over the internet and none of the codes I find are giving me what I want!! I don't want to have to push a dang START BUTTON for the timed words to start running on a page. Nor do I want ALERTS! I just want different words to pop up. I don't want a pretty box or fields or any of that. JUST WORDS on a timed release bases. But apparently nobody wants to teach that! I've even tried repeating codes such as this example and it just doesn't work: function sayHi() { document.write("Hi") } setTimeout(sayHi, 1000); function sayHi2() { document.write("wad up") } setTimeout(sayHi2, 5000); function sayHi3() { document.write("watever") } setTimeout(sayHi3, 8000); However, I would like to add that the closest thing I have been able to create that works, so far, even though it has something like a START button is this: Things That Are Soft: Display Timed Words function timedWords() { var x = document.getElementById("txt"); setTimeout(function(){ x.value="Babies" }, 2000); setTimeout(function(){ x.value="Bunnies" }, 4000); setTimeout(function(){ x.value="Carpet" }, 6000); setTimeout(function(){ x.value="Pillows" }, 8000); }
@NoGoodHandlesComingToMind5 жыл бұрын
Hi odetomy, Did you ever get an answer to your question? I'm kinda curious on the issue you've presented.
@maduagwuchinomso23405 жыл бұрын
would have also love to know, how do i make a Html function to run for 10 seconds and leave the screen
@atyourservice57284 жыл бұрын
Html function????😪😳😱😱😱😱😵😵😵
@claudioferreira40998 жыл бұрын
Hello Daniel, what type of programe did you use for editing the code? And its available for Windows? Thanks
@theentirepopulationofsyria8 жыл бұрын
Sorry if it's too late but here's the link to the downloads section on the p5js website: p5js.org/download/ You need to download the editor to write and run the code. Yes, it's available for Windows.
@renzoportaleone84324 жыл бұрын
It works for me but if I exceed 10000ms it doesn't work. Because? I use licecycle maybe it has a time limit
@keshfreestyl87163 жыл бұрын
You are like my second dad
@harshikerfuffle5 жыл бұрын
I am unable to setTimeout to the draw function somehow
@willfahren-wasserski34595 жыл бұрын
Great video, thx.
@sadhlife7 жыл бұрын
Correction: There's more to this. than that.
@geeknrd9623 жыл бұрын
i wanna make a jumping game, but it jumps so fast, you cant see it.
@signaldog78053 жыл бұрын
How do I do a sleep inside a function
@signaldog78053 жыл бұрын
Oh
@alisaadati8006 Жыл бұрын
tahnks for video
@eladrio23115 жыл бұрын
Oh man are you Italian?? My german brain can cope with da massive hand gestures! hahaha
@mshclips89812 жыл бұрын
thank you
@adwaiths54388 жыл бұрын
Thanks for the rainbow :)
@deltaschool43026 жыл бұрын
i fucking love you videos so much dude !
@butterbot3335 жыл бұрын
Hey im newbie and im trying to make a for loop that won't continue till after the setTimeout has finished but Everytime i try it crashes. Help!! I do something like For(var i=0: i
@tod36084 жыл бұрын
I think stuff() is undefined
@RamkrishanYT2 жыл бұрын
Remember Stampy
@FullKnight516 жыл бұрын
Quickest 9:19 of my life.
@howaboutyu Жыл бұрын
thanks man
@tufu2354 жыл бұрын
I want time killing bookmark... Or .... Gracemonley script. The web site SSMMS.. ..
@cap-advaith5 жыл бұрын
I love u 3000
@ahmedzwawi66083 жыл бұрын
good rainbow !
@Eviatarm7 жыл бұрын
so basically it's like Invoke()... in unity3d C#
@sadhlife7 жыл бұрын
It is!
@asmartbajan6 жыл бұрын
4:08 It's still good practice to name the function, for debugging purposes.
@szaybhattacharya10229 ай бұрын
❤❤God ❤❤
@ritikkhatri7 жыл бұрын
4:33 still watching!
@TheCodingTrain7 жыл бұрын
thank you!
@swily1234 жыл бұрын
Я один здесь русский?
@hodabi6 жыл бұрын
I've had problems with this, so maybe I'm helping somebody, if you are trying to use this. inside setTimeout, you have to store a reference: var me = this; Then you can call setTimeout(function(){(me).something;},1000);
@pju9995 жыл бұрын
Thanks! Learning 'this' without using an arrow function and it helped me!
@justmeep85404 жыл бұрын
4:52 A bee is annoying you.
@nanzhaohz9 жыл бұрын
Nice Sweater!
@TheCodingTrain8 жыл бұрын
well, thank you!
@ruchikabn59957 жыл бұрын
Hello Daniel!! You make great stuff !!! While I was trying one of the p5.js examples, that's the song one (p5js.org/examples/hello-p5-song.html) I tried to use it on my website. But the sound plays where ever I click. How could I sort it out? see what I tried www.nanduri.tk
@adminmabini4483 жыл бұрын
CAN U PLS. STOP LAUGHING.. its annoying and u looks like ur not serious. 😐