About 14,000 results
Open links in new tab
  1. math - JavaScript exponents - Stack Overflow

    May 6, 2011 · How we perform exponents in JavaScript According to MDN The exponentiation operator returns the result of raising the first operand to the power second operand. That is, …

  2. javascript - Difference between Exponent operator ^ and …

    Jul 26, 2018 · ^ isn't the exponentiation operator in JavaScript, ** is (and only recently). ^ is a bitwise XOR. More on JavaScript operators on MDN. If you compare 100**49 to …

  3. Exponents without Math.pow () JavaScript - Stack Overflow

    Nov 13, 2015 · /* Write a JavaScript function named intPow that reads two numbers named base and exp from two text fields. Assume that the second number will always be an integer greater …

  4. How does the double exclamation (!!) work in JavaScript?

    Mar 28, 2015 · @Stokely What you described are not "edge cases". In JS, an empty string is falsey and non-empty strings are truthy. Doesn't matter what is contained inside the string, a …

  5. html - Javascript calculator with exponents - Stack Overflow

    Oct 23, 2014 · I am attempting to create a simple calculator using html5, css3 and javascript. My problem is that my button for exponent does not seem to work, all the other operator buttons …

  6. Why is -1**2 a syntax error in JavaScript? - Stack Overflow

    Apr 22, 2017 · In most languages like PHP and Python and others that have an exponentiation operator (typically ^ or **), the exponentiation operator is defined to have a higher precedence …

  7. javascript - Why does using exponentation operator ** usage …

    I imply that node.js should support exponent operator (**), because according to Node.js main page: Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. I also know, …

  8. What does the ^ (caret) symbol do in JavaScript? - Stack Overflow

    The bitwise XOR operator is indicated by a caret ( ^ ) and, of course, works directly on the binary form of numbers. Bitwise XOR is different from bitwise OR in that it returns 1 only when …

  9. javascript - Difference between ECMAScript 2016 exponentiation …

    Nov 10, 2016 · None. As you can read in the ES7 spec, both Math.pow and the ** exponentation operator cast their arguments/operands to numbers and use the very same algorithm to …

  10. javascript - What does the double exclamation !! operator mean?

    Sep 17, 2011 · Why does my JavaScript code receive a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error, while Postman does not? Hot Network Questions …

Refresh