Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Javascript Tutorial - 6 - Arrays

Loading...

Sign in or sign up now!
69,679
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 12, 2008

visit www.thenewboston.com for all my tutorials!

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

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

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

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

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

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

  • this is not working

  • 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)*/

  • @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

  • 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

  • @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. ;)

View all Comments »
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