Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to root with any number in js

function letsroot(number, rootingFactor) {
	return Math.pow(number, 1 / rootingFactor)
}
console.log(letsroot(4, 2)) //output 2

//first parameter the number u want to root
//second parameter the number u want to root by
 
PREVIOUS NEXT
Tagged: #root #number #js
ADD COMMENT
Topic
Name
2+6 =