Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

exponent in javascript

let number = 2;
let exponent = 3;

//using the exponent operator
console.log( number ** exponent);
// using the Math library 
console.log( Math.pow(number, exponent);
// these will both output 8 
Comment

** javascript Exponentiation

//Exponentiation
2**2 = 4
it's is like 2^2 = 4 
3**9 = 19683
it's is like 3^9 = 19683
we can say power of 2 is 2
we can say power of 3 is 9
Comment

exponent javascript

Math.pow(base, exposant);
// if (math.pow(4,3)
//do (4*4*4)
//output:64
Comment

PREVIOUS NEXT
Code Example
Javascript :: js get last array element 
Javascript :: kotlin jsonobject from string 
Javascript :: if else alert js 
Javascript :: jquery add event after page load 
Javascript :: check if string contains lowercase javascript 
Javascript :: regex find string between two characters 
Javascript :: How to loop through an object in JavaScript with a for…in loop 
Javascript :: angular get current route 
Javascript :: javascript localstorage 
Javascript :: controlled autocomplete material ui 
Javascript :: jquery select self and siblings 
Javascript :: bs modal service close 
Javascript :: formik validator in react 
Javascript :: javascript open page 
Javascript :: install latest electron 
Javascript :: merge objects javascript 
Javascript :: cdn jquery 
Javascript :: protected route in react js 
Javascript :: factorial javascript function 
Javascript :: filereader check file type 
Javascript :: how to set css variables in javascript 
Javascript :: first repeated character in a string javascript 
Javascript :: run a while loop for certain time javascript 
Javascript :: replace all js 
Javascript :: express middleware 
Javascript :: ajax jquery 
Javascript :: count array filter javascript 
Javascript :: json limit 
Javascript :: app.use bodyparser 
Javascript :: javascript join list of string 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =