Added: 3 years ago
From: thenewboston
Views: 69,653
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (128)

Sign In or Sign Up now to post a comment!
  • You didn't mention that you can also do these examples because of the loosely typed nature of javascript:

    var names=[1, 52, 23]

    alert(names[1])

    //result: pop-up that says "52"

    var names2 = []

    names2.value1 = "Successful success is successful"

    alert (names2.value1)

    //result: pop-up box that says Successful success is Successful

  • this is not working

  • @COD5252 Really? Explain your issue instead of 'this is not working'.

  • @JScodeZ the title says Javascript Tutorial - 6 and i was following a series with next video Java Tutorial - 6 so i was confused

  • Correction: Its not called a 3 dimensional array.*

    

  • var 3dpoint = new Array()

    3dpoint[0]=x

    3dpoint[1]=y

    3dpoint[2]=z

    //or

    var 3dpoint2 = new Array(x,y,z)

    //sometimes one way is faster

    /*basically how all video games work: they store all their data in 3 dimensional arrays and do the math on the points to turn them into beleiveable 3d polygons. (Its called vector math and without it I wouldnt have bf3)*/

  • y did u swtch onto html?

  • great tutorials man

    though they are a bit slow i dont think someone can be that stupid that you have to explain such basic things so thoroughly =P

  • i am only 3 and i can now add java to the long list of programming language that i know.

    lul wut

  • Im 11 and i know javascript HTML css and now java! thanks you helped me learn how to code my site

  • @ryzanin ...That's exactly what he does later.

  • What recording software is this?

  • Comment removed

  • @colll78 Awesome! Im 12 and i do website in html, im not going to do game design. Just Web Design, im gunna learn Javascript, JQuery, AJAX, Apache, PHP, and maybe ASP.Net if i have time ;D

  • @shredder8910 Oh GOOD BOY but this s nt right time to learn this bcaz after 21 u ll start to learn this al and now try t play game with u friends then when ll u play game at the age of 25 ah ????? not possible........think n do ......by well-wisher

  • @MrMusicPunk @coll78 @munayata38 No one gives a shit, assholes.

  • @thesickbeat This is Shenz's 5 year old Afro son, what you said was pretty blunt ...

  • @shenzhenprostitute This is Shenz's 5 year old Afro son, you are wrong, I do give a shit ..

  • @MrMusicPunk me too

  • how does java know what kind of variable you're using for the array?

  • this is fantasticooooo

  • Im 15 and im creating my own game using the unity3d game engion I know

    everything in javascript and c#. I also know most of html. There videos are very informative for begginers.

  • @colll78 This is Shenz's 5 year old Afro son .. don't listen to thesickbeat .. he is just jealous that you are smarter than him .. I give a shit ......maybe Alex doesn't but I do care

  • i was joking :)

    hey, can you please make some unity3d tutorials? they use javescript and would be pretty useful to make games apps etc!

  • fuck firefox programmers

  • I type it just as he does but it keeps outputting the first character in the array instead of the entire string

    var names=new Array("this","that","those");

    alert(name[1]);

    this outputs an 'h' instead of 'this'

  • @jakewebbing

    alert (nameS[1]);

  • @fouad796

    wow it actually worked. To think that an 's' was preventing me from continuing this tutorial.

    Thnx man.

  • @jakewebbing As you can see alert(name[1]); would be "that" not "this" and you need a space between your commas Example of the correct way:

    var names=new Array("this", "that", "those");

    Plus you said "name in your alert insted of "names like for your array. I hope i helped. ;)

  • This is just like a programming class... the only thing it lacks are two important things: projects and credits.

  • @JKTCGMV13 can always set yourself you own projects:D

  • I asked my girlfriend if she would give my wiener arrays and she said "Sure baby!" and hopped right on it.

  • You could off-put the Array's zero-based system by doing this though:

    var ary = new Array ("", "infoOne", "infoTwo")

  • Pretty simple when you already know advanced Java. I mean, the scripting isn't all that close.. It's simpler with Javascript, but it's much easier to learn and understand.

  • done with xhtml javascript now going for mother of javascript :java:...indeed mother of object oriented languages

  • This guy is AWESOME!

  • Thanks!

    Did tutorials are superb!

    Fantastic job:

    o Clear descriptions, easy to follow, useful information

    o Encouraging

    o Also, a refined and excellent sense of humor that helps things.

    Keep up the great work!

  • olololol i use normal notepad to edit olololololol

  • My Dad Knows C+++ Programming...I thought it was VERY VERY VERY HARD and btw Im 11 too ^_^

  • @MysteriousStrangerxX don't worry, you'll get there too, just take one step at a time, but still though it will get harder, but that doesn't mean you should give up.

    Cheers!

  • Thanks, Trying to learn all the coding types. My dream is to get my masters degree and become a game coder. Thank You.

  • @xxBlackHat

    You'll get there, I started with JavaScript and I'm now coding C#/XNA and making a game.

  • just idiots dislike this vdos, change it to like suckers!

  • I like the your teaching pace, use of simple language, and of course clarity. Im here to 'refresh' Javascript so i can actually apply it to the fun things i do. I took js before but that was a few yrs ago. Your examples of basic array creation is just the most clearer it can get. Thanks and ill check out your other videos.

  • I am only 3 and a half years old and I found your tutorial very helpfull too... *sits and waits for thumbs up for pointless comment"

  • But, if we use the second way, we could just skip over the number 0 to simplify, couldn't we?

  • @TheMasterMind555 yes you could, but the array will still start from 0, so if you were to call name[0] where no values are in it, it will return you a null value, basically nothing. when you get into more complicated algorithms, you will have to be careful of keeping track where your array is starting from.

    hope this helped! :) anyone can correct me if i am wrong.

  • 11 yrs old and read a book on computer geeks. I like computers but knew nothin about them. I spent an hour watching utube videos to learn javascript and another 3 hrs looking up HTML. ur videos r really helpfull so PLEASE keep uploading so I can become the ULTIMATE computer geek. Package complete with a snorting laugh and glasses

  • awesome arrays i thought i know now super!

  • im 11 and these are very helpfull!!!!!

  • this is best ;)

    watch?v=tDGyq3-D6lc

  • I am only 85 and have found your tutorial very helpful indeed.

  • @Hakerpawel1 lol

  • I don't know about right now, but later on, just by using your tutorials could you perhaps make a video game?

  • @McdBzsarok He has done a lot of videos for Java Game Development if you wanted to check those out. Here's the first one - watch?v=hBhAWTSu104

  • @McdBzsarok If you want to get into game development in JavaScript, you should check out a tutorial about the new canvas element from HTML5. You can basically do almost everything you can also do with Flash  with this new element (in combination with JavaScript.. :P)

  • I know turing is an useless program, but can anyone help me with it?

    Please reply ASAP I need help before December

  • I was really confused but your video helped me understand arrays. It is easier than I thought, Thanks.

  • I am 11 and I have made 4 iphone apps threw complex tutorials and books I can't understand but your tutorials are so clear. I am even trying to watch your iphone tutorials, I have no clue on objective C though!

  • @AsianKidsPro Don't miss youre childhood

  • @Valy18 I don't I have moved on to objective C and I am working on my 6th iphone app

  • GOOOODLIKE

    

  • you seem to be very tired :)

  • @altisw5 Or mafiaboy :P

  • Hm, Javascript reminds me at C++

  • @AnewBANDareHERE Same here lol

  • you are better compared to my instructor..

  • do we need JAVE on our computer???? what is dose?

  • It doesn't work when you change the variable "name" to "names". I thought you could name a variable anything you wanted...

  • @d1995a3 You can change the variable name to anything i called it car it worked.

  • @d1995a3 Did you change both variables to names?

    i.e.

    var names=new Array('tony','mike','dan');

    alert(names[1]);

  • its the same as this

    <script type="text/javascript">

    var name1="william"

    var name2="james"

    document.write(name1+name2)

    </script>

  • @mms1911 :

    no its not the same as this you are declaring two variables but inside the video he is declaring an array and there are three elements of that array.

  • @passwwd ok, im use to useing a game engine called game maker, so i try to find ways to make scripting easier and shorter, im still new to javascripting

  • @passwwd but this way is still prety easy

  • L LOVE u lol ur just heaps mad lm learning so so so much

  • Thanks dude

  • It took me 1 year to fully master lua by myself, took me 2 days to master this easy coding :P i made a mother's day card using arrays :D

  • Good tutorial Indeed, Just wondering what is the text editor(IDE) this guy is using.

  • @mindlesssingularity He's using notepad++. Pretty awesome for just about any coding...and it's free!

  • these tutorial is awesome i learned javascript in an hour....

  • Thanks very much, all of your tutorials that I have watched so far are brilliant , and I have managed to learn a lot =] thanks

  • Thank you bro :)

  • thank you

  • I really like your tuts, they're very easy to understand and everything is perfectly legible on the screen;

    good job and keep it going THE NEWBOSTON,

    woooooooooo!!!

  • jeah, I remember having the same syntax at lerning processing. It was a good refresher!

  • Great tutorial better thab big thick expensive book

  • This is realy very good. I had always problems to learn it but here it goes like nothinh. Thanks!

  • These tutorials ae fantastic!!

    i have learned basic HTML and JavaScript in 2 days!

    GREAT JOB!!! :D

  • DOOD USE CAM TASIA STUDIO IT'S CLEARER Sorry i had caps lock on

  • u can use array literal

  • Why do we need to type "new Array"?

    If we are referencing this array a second time, do we still type "new"?

  • When you create a new array then you type : new Array(). Just think of it as, I want to make a completely NEW array so I type,

    var names2 = new Array("name1","name2");

    When you're referencing them you don't need to make a new array no.

    Just use alert(names1[0]); No need for the new keyword there.

  • No, when reference an array it's just like any variable, just call it's name.

    Also, you don't have to use "new Array();". You can just use square brackets as a shortcut:

    var x = ["item1", "item2", 3, z];

    or to have a blank array:

    var x = [];

    and you can add elements without having to refer to the index by using .push:

    x.push("item1");

    x.push("item2");

  • Fantastic Tutorial!

    thanks so much!

  • Your tutorials are 1 of the best tutorials ,

    you're explanation is really clear.

  • i am 11 to im learning javascripting too it aint easy

  • Thanks a bunch

  • thanks man. that was helpful

  • I am only 11 and have found your tutorial very helpfull indead.

  • I applaud your ambition. Keep at it and you will have an advantage over others of your age group and jump-start your career as a developer (if that is your goal).

  • im starting this and im turing 14

    good job

  • @frodo3332 Yeah: It's very helpful when you're "indead" conditions.

    Zombies love Java.

  • @frodo3332 i started when i was 11 i'm now 12 and know a lot of php html and a bit of js this is great

  • @frodo3332 As do i young chap ;)

  • @frodo3332 Only 11 and into PROGRAMMING

    Hello Mr WillBeMrGate.

  • @frodo3332 It's indeed. Indeed it is.

  • @frodo3332 in dead

  • @lyingstudent i think he was saying "indeed" not that he is "in dead"

  • @frodo3332 I can tell you're 11 because you can't even spell "indeed".

  • @frodo3332 you must be 13 now.. horray array!!

  • @frodo3332 Maybe you should try a spelling tutorial now ;) Nice tuts bucky! :D

  • @frodo3332 im 11 to lol and these are really helpful

  • @frodo3332 1) It says on your profile that you are 19... So you would have been 17 when you wrote that, not 11.

    2) Indead is not, and has never been a word of the English language, so I come to the conclusion that you are "indeed" illiterate.

  • @frodo3332 Indeed. Your just a fucking noob if you can't even spell right then you should gtfo out away from the internet. DOUCHE!!!!!!

  • @frodo3332 indead?

  • @frodo3332 haha, inDEAD. I think you meant indeed...

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more