Top Comments
All Comments (128)
-
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. ;)
I am only 85 and have found your tutorial very helpful indeed.
Hakerpawel1 11 months ago 23
@frodo3332 you must be 13 now.. horray array!!
HawxTeamDelta 1 year ago 8