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

    Oct 29, 2008 · Java classes cannot be redefined in a way that affects any existing object instances. JavaScript allows methods in an object to be redefined independently of its prototype (think …

  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's the difference between JavaScript and JScript?

    Mar 12, 2018 · This doesn't answer the question at all. The question is: "What are the differences between JavaScript and JScript". The correct answer is buried under several reiterations of the same …

  4. Why is JavaScript called JavaScript, since it has nothing to do with Java?

    Jan 7, 2010 · Java is to Javascript what Car is to Carpet. "The language's name is the result of a co-marketing deal between Netscape and Sun, in exchange for Netscape bundling Sun's Java runtime …

  5. Why does Java code need to be compiled but JavaScript code does not

    JavaScript and Java are not the same thing. They might share a similar name, but I refer you to the JS guru - Douglas Crockford to help clear up the fact that they are really not related at all. The reality is …

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

    In all other cases, you're safe to use ==. Not only is it safe, but in many cases it simplifies your code in a way that improves readability. I still recommend Crockford's talk for developers who don't want to …

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

    Nov 7, 2014 · I am experienced in JavaScript, but new to Java. In JavaScript there are "object" data types where a given variable essentially has sub-variables with their own unique values, for example: …

  8. Javascript equivalents for Java Streams API - Stack Overflow

    Apr 14, 2017 · What is the javascript equivalent for the Java streaming API? I know there're basic functions like map, filter and reduce, but don't find any more generalized interfaces provided by …

  9. Difference between classes in Java vs JavaScript?

    Jul 5, 2017 · 6 Unlike some languages like Java where we can reference variables within a class without using this, this binding behaves much differently in JavaScript, as does scoping. In Java, this is legal:

  10. Using and (&&) and or (||) together in the same condition in JavaScript

    What kind of value types do a–d have? 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 …