Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > a = [ "1", "2", "3" ] v/s a = new Array ( "1", "2", "3" )identical in all ways?

Reply
Thread Tools

a = [ "1", "2", "3" ] v/s a = new Array ( "1", "2", "3" )identical in all ways?

 
 
okey
Guest
Posts: n/a
 
      08-25-2009
Do these result in identical objects?

a = [ "1", "2", "3" ]
a = new Array ( "1", "2", "3" )
 
Reply With Quote
 
 
 
 
Richard Cornford
Guest
Posts: n/a
 
      08-25-2009
On Aug 25, 1:30*pm, okey wrote:
> Do these result in identical objects?
>
> a = [ "1", "2", "3" ]
> a = new Array ( "1", "2", "3" )


Yes, but:-

a = [ 2 ];
a = new Array( 2 );

- do not.

Richard.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
![Oof Topix] All McCain, All Flip-Flop, All the Time Bucky Breeder Computer Support 7 09-27-2008 03:33 PM
All new updates at Testking.co.uk with all new added exams with 100 % passing guarantee Moderator Microsoft Certification 5 02-02-2006 02:48 PM
All new updates at Testking.co.uk with all new added exams with 100 % passing guarantee Moderator MCSE 5 02-02-2006 02:48 PM
All new updates at Testking.co.uk with all new added exams with 100 % passing guarantee Moderator MCSD 5 02-02-2006 02:48 PM
All new updates at Testking.co.uk with all new added exams with 100 % passing guarantee Moderator Microsoft Certification 0 01-23-2006 01:15 PM



Advertisments