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 :: javascript array contains 
Javascript :: base64 encode in javascript 
Javascript :: jquery change h1 text 
Javascript :: printing in a single line in javascript 
Javascript :: javaScript setHours() Method 
Javascript :: random color 
Javascript :: get request with axios 
Javascript :: Connect to socket.io node.js command line 
Javascript :: how to use a regex expression in kibana query 
Javascript :: javascript download html to pdf 
Javascript :: how to check if a date has passed javascript 
Javascript :: react buffer to image 
Javascript :: nodejs return value 
Javascript :: encrypt in js 
Javascript :: form submit not reaload 
Javascript :: how to console in node js 
Javascript :: type checking js vscode 
Javascript :: logic operators in javascript 
Javascript :: react semantic button 
Javascript :: get json data into array of object 
Javascript :: angular ionic capacitor nfc reader 
Javascript :: javascript como recorrer un array multidimensional 
Javascript :: expres body parser 
Javascript :: how to increment variable value in javascript 
Javascript :: javascript hello world 
Javascript :: object intersection javascript 
Javascript :: javascript read consol input 
Javascript :: woocommerce update mini cart ajax 
Javascript :: how to use useref hook in react 
Javascript :: how to remove selected characters from a string in javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =