MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Compare Revisions

User:outis

Change Revisions

Revision 58278:

Revision 58278 by outis on

Revision 58279:

Revision 58279 by outis on

Title:
User:outis
User:outis
Slug:
User:outis
User:outis
Content:

Revision 58278
Revision 58279
t11      &lt;code&gt; rather than &lt;pre&gt;: <code class="eval dekt11      &lt;code&gt; rather than &lt;pre&gt;: <code class="deki-tra
>i-transform" function="syntax.JavaScript">var o = {a:1, b:2, c:3}>nsform" function="syntax.JavaScript">var o = {a:1, b:2, c:3}; fun
>; function show_props(obj, objName) { var result = ""; for (var p>ction show_props(obj, objName) { var result = ""; for (var prop i
>rop in obj) { result += objName + "." + prop + " = " + obj[prop] >n obj) { result += objName + "." + prop + " = " + obj[prop] + "\n
>+ "\n"; } return result; } alert(show_props(o, "o")); /* alerts: >"; } return result; } alert(show_props(o, "o")); /* alerts: o.a =
>o.a = 1 o.b = 2 o.c = 3 */</code>> 1 o.b = 2 o.c = 3 */</code>

Back to History