shane18 Posted February 14, 2010 Share Posted February 14, 2010 When you do... if(X == 0){ } if I didn't use X in anything before... does X automatically = 0/false like it does in php or does it == NULL? Quote Link to comment Share on other sites More sharing options...
shane18 Posted February 14, 2010 Author Share Posted February 14, 2010 also, when using arrays must you declare it? Example: var my_new_array = new Array(); is the code above required or can u just go Example: my_new_array[2] = "test"; //OR my_new_array = phone_number.split("-"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.