Compare Revisions

Values, Variables, and Literals

Revision 86395:

Revision 86395 by teoli on

Revision 235473:

Revision 235473 by Manuel Strehl on

Title:
Values, Variables, and Literals
Values, Variables, and Literals
Slug:
Talk:JavaScript/Guide/Values,_variables,_and_literals
Talk:JavaScript/Guide/Values,_variables,_and_literals
Content:

Revision 86395
Revision 235473
n23      Yes, but isn't it already explained <a href="/en/JavaScriptn23      Yes, but isn't it already explained <a href="/en/JavaScript
>/Guide/Values%2C_Variables%2C_and_Literals#Variable_Scope" title=>/Guide/Values,_Variables,_and_Literals#Variable_Scope" title="htt
>"https://developer.mozilla.org/en/JavaScript/Guide/Values,_Variab>ps://developer.mozilla.org/en/JavaScript/Guide/Values,_Variables,
>les,_and_Literals#Variable_Scope">there</a> ?<br>>_and_Literals#Variable_Scope">there</a> ?<br>
t25      <a href="https://developer.mozilla.org/User:teoli" rel="cust25      <a href="/User:teoli" rel="custom nofollow">teoli</a> 05 Oc
>tom nofollow">teoli</a> 05 October 2010>tober 2010
26    </p>
27    <p>
28      ---
29    </p>
30    <p>
31      About the var keyword: I noticed, that both
32    </p>
33    <p>
34      &nbsp;var b = a, a = "foo";
35    </p>
36    <p>
37      and
38    </p>
39    <p>
40      &nbsp;var a = "foo", b = a;
41    </p>
42    <p>
43      produce an b == "foo". Any ideas, which one is canonical, o
 >r are both correct?
44    </p>
45    <p>
46      Manuel

Back to History