Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18268

Re: Problem with Map in Javascript

Newsgroups comp.lang.javascript
Subject Re: Problem with Map in Javascript
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <be3b2628-535a-4137-82b3-4c9608d99802@googlegroups.com>
Date 2013-01-26 23:55 +0100
Message-ID <XnsA154F36DDB6Eeejj99@194.109.133.133> (permalink)

Show all headers | View raw


Jeovane Reges wrote on 26 jan 2013 in comp.lang.javascript:

> Hello all, good night.
> Guys IM trying to create a Map (Map <k,v> in java) in javascript,
> where the keys and values are added dynamically, however, when I try
> to "create" them dynamically always ends up giving error. 
> 
> My code -> http://pastebin.com/NZxjpDvg
> 
> However, the way that my code be, even if I add two values belonging
> to the same key, it always falls on else besides overwrite the
> existing values. And if I add a new Key instead of being created a new
> array what happens is that this new overwrites the previous one. 
> 
> Someone can tell me what should I do to fix my code?
> Since already thank you for everyone's help.

Javascript is not a script version of Java, but a totally different 
language group.

It's scripts are not called "Javascripts", but "Javascript scripts".

There is even a longtime member of this NG, who maintains that Javascript 
doesn't even exist, so we cannot figure out why he still frequents this 
NG. Many of us, me too, value his input, though.

So please learn some Javascript first.

btw, this is an emancipated NG, not all of us being guys.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Problem with Map in Javascript Jeovane Reges <jeovane.reges@gmail.com> - 2013-01-26 14:12 -0800
  Re: Problem with Map in Javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-26 23:55 +0100
    Re: Problem with Map in Javascript Martin Leese <please@see.Web.for.e-mail.INVALID> - 2013-01-26 20:13 -0700
      Re: Problem with Map in Javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-27 18:53 +0100
        Re: Problem with Map in Javascript Tim Streater <timstreater@greenbee.net> - 2013-01-27 18:03 +0000
  Re: Problem with Map in Javascript Danny <dann90038@gmail.com> - 2013-01-26 15:07 -0800
  Re: Problem with Map in Javascript Scott Sauyet <scott.sauyet@gmail.com> - 2013-02-05 18:31 -0800

csiph-web