About 423,000 results
Open links in new tab
  1. What's the difference between JavaScript and Java?

    Oct 29, 2008 · JavaScript, despite the name, is essentially unrelated to the Java programming language, although both have the common C syntax, and JavaScript copies many Java names …

  2. Which equals operator (== vs ===) should be used in JavaScript ...

    Dec 11, 2008 · I'm using JSLint to go through JavaScript, and it's returning many suggestions to replace == (two equals signs) with === (three equals signs) when doing things like comparing …

  3. What is the correct way to check for string equality in JavaScript ...

    Aug 27, 2010 · There are actually two ways in which strings can be made in javascript. var str = 'Javascript'; This creates a primitive string value. var obj = new String('Javascript'); This …

  4. Using and (&&) and or (||) together in the same condition in …

    JavaScript might have some non-obvious type coercion going on. Maybe try comparing with === or convert to numbers explicitly. Side note: many lint tools for C-like languages recommend to …

  5. What's the difference between a JavaScript object and an …

    Mar 4, 2020 · JavaScript objects are different from classical OO/UML (C++/Java/C# etc.) objects. In particular, they need not instantiate a class. And they can have their own (instance-level) …

  6. Why is JavaScript called JavaScript, since it has nothing to do with …

    Jan 7, 2010 · At the time Javascript or Livescript was launched into market the Sun MicroSystems was busy with the java creation so they named it as javascript. Also it uses some basic …

  7. JavaScript-like Object data type in Java? - Stack Overflow

    Nov 7, 2014 · What should stand out most obviously is that Java keeps track of what type each variable is. Not visible is that Java will prevent you from assigning to unknown properties, say …

  8. Difference between classes in Java vs JavaScript?

    Jul 5, 2017 · In JavaScript, we don't have this behavior, there's no such thing as a class variable . class Test { i; // <-- Uncaught SyntaxError: Unexpected token ; method() { console.log(i); } } …

  9. Does Eclipse run Java or Javascript? - Stack Overflow

    Apr 21, 2021 · (Here taken from the Programiz web site.) The call to System.out.println() is specific to Java too. JavaScript If you embed your code inside tags in HTML, then it’s …

  10. How can Java and JavaScript work together? - Stack Overflow

    Dec 12, 2012 · If your JavaScript code is based on the DOM structure of the document and you really, really want to reuse it, then you can write a browser plugin (for example for Chrome), let …

Refresh