Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #32502
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.javascript, comp.lang.java.programmer |
| Subject | Re: questions re Javascript |
| Date | 2015-09-03 20:01 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <msan0e$19l$1@speranza.aioe.org> (permalink) |
| References | <2b531f48-fff9-4c73-a116-22a3f110e919@googlegroups.com> <020920150828500988%timstreater@greenbee.net> <java-and-javascript-20150902121750@ram.dialup.fu-berlin.de> |
Cross-posted to 2 groups.
On 9/2/2015 7:20 AM, Stefan Ram wrote: > Tim Streater <timstreater@greenbee.net> 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
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Re: questions re Javascript Arne Vajhøj <arne@vajhoej.dk> - 2015-09-03 20:01 -0400 Re: questions re Javascript Martin Gregorie <martin@address-in-sig.invalid> - 2015-09-04 08:46 +0000 Re: questions re Javascript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-05 09:35 +0200
csiph-web