Path: csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.javascript,comp.lang.java.programmer Subject: Re: questions re Javascript Date: Thu, 3 Sep 2015 20:01:16 -0400 Organization: Aioe.org NNTP Server Lines: 44 Message-ID: References: <2b531f48-fff9-4c73-a116-22a3f110e919@googlegroups.com> <020920150828500988%timstreater@greenbee.net> NNTP-Posting-Host: NIM2IeSPVd0kE3mU1mieXw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.javascript:28622 comp.lang.java.programmer:32502 On 9/2/2015 7:20 AM, Stefan Ram wrote: > Tim Streater writes: >> Javascript has nothing to do with Java except for having a similar >> sounding name. > > There are so many similiarities between the two languages, > that I can't name them all. For example, in both Java and > JavaScript, > > 2 + "x" > > gives »"2x"«, while in many other languages it does not. > In both Java and JavaScript, the modulo operator »%« can be > used for doubles, while in many other languages, it cannot. > Both have »instanceof« with a similar meaning, while other > languages do not. In both languages »x == x« is false, when > x is NaN. If these are the criteria then a lot of languages are like Java. > And today, JavaScript is part of Java (the JRE), so it is > actually wrapped together with Java, and today JavaScript > can finally be used /to script Java/ out of the box. I don't think that Java being able to execute JavaScript tell much about whether the two languages are close. I can not see any reason why you could not embed a JavaScript engine in COBOL runtime. > The > promise of its name is thus fulfilled. And both come from > the same company that also owns the trademark for both names. No. SUN created Java. NetScape created JavaScript. NetSCape got permission from SUN to use the Java prefix. Arne