JavaScript Video Tutorial Pt 4

preview_player
Показать описание

JavaScript Arrays & Functions : Manipulate Array Data : Use Multi-Dimensional Arrays : The For In Loop : Do Awesome Things with the Argument Object : Much More

Рекомендации по теме
Комментарии
Автор

Parts 5 and 8 will show you how to do that and much more. Feel free to ask questions

derekbanas
Автор

Thank you very much for the kind words :) The goal is to eventually provide a completely free education on every topic. Feel free to leave requests

derekbanas
Автор

As a beginner, I have seen many online tutorials--some were pay and others were YouTube, and I have to say this is my favorite series. I like the pace, and the screen is easy to see. The narration is clear and the transitions are apparent. Well done.

umyeahimgoingtohavetoaskyo
Автор

That was my plan all along. I figured I'd put everything into one place and allow people to review what didn't make sense by rewinding or getting the code. I'm glad it worked for you :)

derekbanas
Автор

Thank you :) I'm happy that I found so many people that enjoy the fast tutorials. You should really always use var. This is especially true if you are defining a variable in a function. If you don't then the interpreter slows down because it tries to find the variable definition in the global scope. I more then likely didn't use it to demonstrate that. Sorry I didn't spend more time explaining what I was doing

derekbanas
Автор

you're the best man, i find it helpful to watch the confusing sections a couple times over rather than watching a really long winded tutorial. definitely the best format for a tutorial, love it

paxdriver
Автор

Hello, You'd make more then likely a do while loop that continues asking for values as long as a condition is true. That condition would describe the the type of input you want to receive. One condition may be to continue asking for input as long as you aren't at the final index for the array for example.

derekbanas
Автор

Next up I'm going to do a very long tutorial on making games for desktops and tablets :) It will be about 6 months long and I'll cover everything

derekbanas
Автор

@SamuelLockyer Everything I present here works in all of the browsers and is up to date as of 2011. I don't foresee any major changes anytime soon. Thanks for the kind words :)

derekbanas
Автор

I personally always use var and I agree with you. I was just covering what var is in the video. Thank you for the input :)

derekbanas
Автор

Yes there are many ways. You could assign values directly to an index. There are other ways as well

derekbanas
Автор

Good catch. I don't know why I did that? I improv through most of these videos so I make a little error now and then. I'm glad you found it useful :)

derekbanas
Автор

parseInt(binary, 2)

parseInt converts strings to numbers and it has a second argument for specifying the base

derekbanas
Автор

Thank you very much :) He is considered to be one of the best tutorial guys, so that is quite a compliment!

derekbanas
Автор

@wayofki All global variables in JavaScript are attached to the window object. So if you declare a global var with the name randomNum it is accessible at window.randomNum

derekbanas
Автор

Thank you very much :) I constantly try to improve each time I make a new video. If I keep it up maybe I'll be popular some day

derekbanas
Автор

Thank you for pointing that out. I'll take a look. I'm glad you enjoyed the videos :)

derekbanas
Автор

I think I know what the problem is. Forms can only contain block elements. Just wrap all the form contents inside a div or fieldset tag and there will be no validation problems.

derekbanas
Автор

@unoLT You are correct. Sorry about that little slip up. They should both be zero. I'll fix the code on my site.

derekbanas
Автор

I agree that it is extremely weird, but it does a better job at what it does then other languages. At one point I thought Dart may replace it, but I've given up on it.

derekbanas