StringField.js 558 B

1234567891011121314151617
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. var o=new Object();
  6. o.x=5;
  7. o.y="why";
  8. WScript.Echo(o["x"]);
  9. var s="y";
  10. WScript.Echo(o[s]);
  11. o["y"]="yes";
  12. WScript.Echo(o.y);
  13. for (field in o) {
  14. WScript.Echo(o[field]);
  15. }