- Home /
What is the c# equivelant of 'map' in Javascript?
As in,
Map<String, Int> stringInt = new Map<String, Int>();
An array? A dictionary?
Sorry if this seems trivial, but all I can find on Google is 'HOW TO MAKE A MAP OF YOUR COUNTRY IN JAVASCRIPT' or similar. Finally having a clear and unambiguous answer to this would be appreciated!
--Rev
"Sorry if this seems trivial" - No need to apologise - you asked a clearly worded question, you showed that you'd already searched Google for it, and you marked the correct answer when given. I'd say you asked a pretty model UA question, actually :)
Answer by PouletFrit · May 31, 2014 at 02:09 PM
A Map in javascript is the equivalent of a dictionary in C#.
"Map" is used by Java, C++
"Dictionary" is used by .Net, Python
"Associative array" is used by Javascript, PHP
Your answer
Follow this Question
Related Questions
Comparing two objects properties for the closest 0 Answers
Convert Array into One String (Js) 1 Answer
Missing Materials on build 1 Answer
Development of the shop? 1 Answer
Split Textasset into List 1 Answer