×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: userc865b
Added: Jun 9, 2017 11:49 AM
Views: 2356
Tags: js
  1. var test=[];
  2. test['asd']="10";
  3. test['was']="10";
  4. for (var key in test) {
  5.     alert("User " + test[key] + " is #" + key); // "User john is #234"
  6. }