we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "how does a dictionary from c 23 translate into js"
Jace
13 Oct 2020
1var dictionaryVariable //dictionary recieved from C#
2dictionaryVariable["Key"] //will return specified key's value
3for (var d in dictionaryVariable)
4{
5    if (dictionaryVariable.hasOwnProperty(d)) 
6    {
7        alert(d + '   ' + dictionaryVariable[d]); //displays key and value of all dictionary entries
8    }
9}