G
Gregc.
Hi
Is the syntax for JavaScript the same for Java?
Greg
Is the syntax for JavaScript the same for Java?
Greg
Gregc. said:Is the syntax for JavaScript the same for Java?
Gregc. said:> Hi
>
> Is the syntax for JavaScript the same for Java?
>
> Greg
Alex said:There's this site called "Google"....
Searching for "java versus javascript" is probably a good idea.
Thankyou.Andrew said:No, they are different languages. (Though some of the
code and method names can look similar).
(moments later..)
Actually, now that I check the definition of 'syntax',
I'll need to ease back from the first answer.
The syntax of Java and JavaScript has a lot of
similarities, but probably no more than the similarities
common to any two randonly chosen, high level,
OO languages.
Gregc. said:Is the syntax for JavaScript the same for Java?
Lasse said:No.
They have a lot of similarities, probably because they both
took the basic syntax from the C language (or from another
language that took it from C).
Gregc. said:Is the syntax for JavaScript the same for Java?
Oliver Wong said:They are different. One example of a difference: "class" is a reserved
word in Java, but not in JavaScript.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.