Friday, January 15, 2016

Array Inside array

<p style="line-height: 18px; font-size: 18px;  font-family: times;">
Click "<i>Load samples</i>" to view and edit more JS samples.<br>
<br>
Labyrinth generated with JavaScript:<br><br>
<script>

var secure = {
                slot : "",
                Secret : "",
               Token : "",
                access: "",
                service : {
                    Method : ""
                }
            };

  keyvaluecoll = [];
            keyvaluecoll.push(['key1', 'value1']);
            keyvaluecoll.push(['key2','value2']);
            keyvaluecoll.push(['key3', 'value2']);
            keyvaluecoll.push(['key4', 'value2']);
            keyvaluecoll.push(['key5',secure.slot]);
            var  d=keyvaluecoll[0];
            s=d[0];
            window.alert(s);
          
</script>
</p>

No comments:

Post a Comment