That is where you went wrong - javascript has absolutely nothing to do with java and was never based on it.in Java would be the same in JS, as its a scripting language based from it.
That's not a bad assumption to make, though. It would be true for basically any language other than Javascript and PHP.That is where you went wrong - javascript has absolutely nothing to do with java and was never based on it.
Or as someone once said: java is to javascript what ham is to hamster.
They changed the name to Javascript to try and get popularity over the Java name.I had the assumption because I thought the reason why it is 'Java'Script is because the syntax and logic flow is the same as of Java. If it was not based on Java, I wonder why, I think the developer could just have used another name for it.
