Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22801 > unrolled thread
| Started by | Olaf Schmitt <thesys@gmx.de> |
|---|---|
| First post | 2014-01-26 19:05 +0100 |
| Last post | 2014-01-26 20:29 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.javascript
Waht means $ before a variable or funcion? Olaf Schmitt <thesys@gmx.de> - 2014-01-26 19:05 +0100
Re: Waht means $ before a variable or funcion? Martin Honnen <mahotrash@yahoo.de> - 2014-01-26 19:25 +0100
Re: Waht means $ before a variable or funcion? Olaf Schmitt <thesys@gmx.de> - 2014-01-26 20:00 +0100
Re: Waht means $ before a variable or funcion? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-26 20:29 +0100
| From | Olaf Schmitt <thesys@gmx.de> |
|---|---|
| Date | 2014-01-26 19:05 +0100 |
| Subject | Waht means $ before a variable or funcion? |
| Message-ID | <lc3iod$5k6$1@news.albasani.net> |
Hello!
Sometimes is see $('variable') = ....
Or $function ....
What does this $ mean?
Best
Olaf
[toc] | [next] | [standalone]
| From | Martin Honnen <mahotrash@yahoo.de> |
|---|---|
| Date | 2014-01-26 19:25 +0100 |
| Message-ID | <52e55301$0$6668$9b4e6d93@newsspool2.arcor-online.net> |
| In reply to | #22801 |
Olaf Schmitt wrote:
> Sometimes is see $('variable') = ....
> Or $function ....
>
> What does this $ mean?
The code
$('variable')
is a function call where the name of the function is "$" and the single
argument is a string literal 'variable'. Some frameworks define a
function named "$".
In the code
$function
the "$function" is an identifier starting with the "$" sign followed by
the word "function". That is a legal identifier but has no special meaning.
[toc] | [prev] | [next] | [standalone]
| From | Olaf Schmitt <thesys@gmx.de> |
|---|---|
| Date | 2014-01-26 20:00 +0100 |
| Message-ID | <lc3m00$bf6$1@news.albasani.net> |
| In reply to | #22803 |
Am 26.01.2014 19:25, schrieb Martin Honnen:
> Olaf Schmitt wrote:
>
>> Sometimes is see $('variable') = ....
>> Or $function ....
>>
>> What does this $ mean?
>
> The code
> $('variable')
> is a function call where the name of the function is "$" and the single
> argument is a string literal 'variable'. Some frameworks define a
> function named "$".
I thought, it was something special :-)
>
> In the code
> $function
> the "$function" is an identifier starting with the "$" sign followed by
> the word "function". That is a legal identifier but has no special meaning.
Thank you!
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2014-01-26 20:29 +0100 |
| Message-ID | <XnsA2C1D083CA985eejj99@194.109.133.133> |
| In reply to | #22805 |
Olaf Schmitt <thesys@gmx.de> wrote on 26 jan 2014 in comp.lang.javascript:
> Am 26.01.2014 19:25, schrieb Martin Honnen:
>> The code
>> $('variable')
>> is a function call where the name of the function is "$" and the single
>> argument is a string literal 'variable'. Some frameworks define a
>> function named "$".
> I thought, it was something special :-)
Well, perhaps it is.
It is sometimes murmured that this is part of jquery syntax,
but since we do think jquery is something to stay clear of,
[Martin could accidentally have ment this with 'some frameworks']
it wouldn't even do just to mention this on this NG.
So I retract the above forthwith.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web