how to display the values of a map variable in javascript

Posted by user329551 on Stack Overflow See other posts from Stack Overflow or by user329551
Published on 2010-04-30T07:21:30Z Indexed on 2010/04/30 7:27 UTC
Read the original article Hit count: 169

Filed under:
|

I have a javasrcript variable

var hash = {
    '.bmp' : 1,
    '.gif' : 1,
    '.jpeg' : 1,
    '.jpg' : 1,
    '.png' : 1,
    '.tif' : 1,
    '.tiff' : 1,    
  };

I want to display the values (.bmp, .gif, .jpeg, .jpg, .png, .tif, .tiff) of this "hash" object in my alert message. How can I do this? Please help.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jsp