Friday, November 28, 2008

[jQuery] Re: quote standards

i generally use single quotes unless i'm explicitly setting a string.

so..

var foo = "the quick brown fox...";

but when inside of parentheses, i always wrap strings in single quotes.

On Fri, Nov 28, 2008 at 1:28 PM, Bill <bill@beckelman.net> wrote:

I've wondered about this myself. I seem to go back and forth between
the two without any rhyme or reason. Looking forward to more responses
on this thread.

On Nov 28, 1:51 pm, "Andy Matthews" <li...@commadelimited.com> wrote:
> Yes. I am. Plus single quoting is slightly faster due to it's "lower case"
> nature. No need to hold down the shift key.
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:jquery-en@googlegroups.com] On
>
> Behalf Of seasoup
> Sent: Friday, November 28, 2008 2:47 PM
> To: jQuery (English)
> Subject: [jQuery] quote standards
>
> I've started using a single quote inside of all $() when quotes are needed
> because it makes creating DOM elements much simpler. $('<a
> href="/path"></a>') or $('<div id="anId"></div> and for consistency
> doing $('#anId').   Anyone else doing the same thing?
>
> Josh Powell



--
I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.

No comments: