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 :: how to use cordova screen shot 
Javascript :: mongoose search query for a word in a field 
Javascript :: javascript get user from api 
Javascript :: calculate time in seconds javascript angular 
Javascript :: quitar checked jquery 
Javascript :: sorting algorithms in node.js 
Javascript :: reportValidity 
Javascript :: to do list app react code 
Javascript :: less than equal to in javascript 
Javascript :: how to check popup is open or not in javascript 
Javascript :: set map to local storage javascript 
Javascript :: how to use two text fields in one single row react js 
Javascript :: random number generator 
Javascript :: not equal to in js 
Javascript :: [Object] node js output 
Javascript :: javascript subtract years from date 
Javascript :: array.splice 
Javascript :: classic asp json multidemsion json 
Javascript :: get random elements from array javascript 
Javascript :: set function to execute at certain time js 
Javascript :: ajax post request javascript 
Javascript :: how to download an mp3 file in react native 
Javascript :: js insert in array 
Javascript :: filepond remove uploaded file 
Javascript :: electron vue printer 
Javascript :: jquery owl go to slide 
Javascript :: this.$set in vue 3 
Javascript :: fibbanacci sequence 
Javascript :: JavaScript Sorting Arrays 
Javascript :: node http request 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =