Users Viewing This Thread
 1 Guest(s)
amatorbalikci.net

Post Reply  Post Thread 
JavaScript Strings wrapped in Apostrophes or Quotes
Author Message
smacker
Member
***


Posts: 234
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0

Country:
Post: #1
JavaScript Strings wrapped in Apostrophes or Quotes

Which is actually faster... JavaScript strings which are wrapped in Apostrophes or Quotes....

"IS THIS FASTER"

'OR IS THIS FASTER'

I really wouldn't be asking this if someone didn't mention to me a long time ago that it actually made a difference in php... One of them being parsed slightly faster than the other...

does it make a difference or is this the dumbest question you've heard in a long time...?

09-14-2007 07:39 AM
Find all posts by this user Quote this message in a reply
tina1
Member
***


Posts: 120
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0

Country:
Post: #2
RE: JavaScript Strings wrapped in Apostrophes or Quotes

As far as I know there's no execution inside of double quotes in Javascript like there is in PHP, I would think it doesn't make a difference which is used speedwise.

In any event, the browser will never have hundreds or thousands of connections going at a single moment like a webserver does, any difference there could be is likely to be completely unnoticable in a "real" application.

09-14-2007 09:22 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: