+9

# Javascript output

Can Anyone explain the output? Please Idk how it calculated that answer 🤔 Thank you https://code.sololearn.com/WG8JWScz7N3x/?ref=app

+3

Here is why you dont get a number but infinity https://www.w3schools.com/jsref/jsref_infinity.asp i also coded something for you https://code.sololearn.com/WjmeL1IFMUUW/?ref=app

+16

in JavaScript , X**Y = X^Y . Eg: 10**3= 10^3=10×10×10=1000 . Now see your code and imagine for 10**10= 10^10 then (10**)10 **10= 10^(10^10) This can be calculate but there in program have some rule & limit , that's why your results is "infinity"

+10

Nico Ruder and Agent_I Thank you both for your help ☺️

+8

Nico Ruder so javascript have minimum and maximum number limit ? -1.797693134862315E+308 (minimum) And 1.797693134862315E+308(maximum) if the number is not inside that range then it will display "infinity" Am I right?

+8

Nico Ruder this minimum and maximum range is for every programming languages or only for javascript?

+8

Nico Ruder bro you have iOS or Android?🤔

+7

Nico Ruder why not share codes in message section in sololearn 🙄

+7

Nico Ruder go to your notifications. Then click on the tab called"message"(2nd tab) I already send you "hi" so the message should already popped up for you

+5

Roshan yeah brother 10 ** (10**10) = 10 000 000 000 ↓ 10 ** 10 000 000 000 = ? 🙄 thanks for your answer 😁

+1

The ** is an exponentiation. So the result is actually 10^(10^10) and that result is too large. That's why the output is infinity

+1

yes this is why you get infinity

+1

if you think about it you multiply 10 times 10 with 10 zeros

+1

maybe other programming languages have bigger or smaller limits but I dont know. Look for the documentation to find out

+1

Daniel [#United We Stand🇮🇳] It's actually the maximum of a double-precision floating point, or simply double. Every variable is JS is stored in double

+1

Daniel i want to know you better. maybe we can write together. here is an Email where you can send me your email addres so i can write you back. b5014511@urhen.com

+1

android

+1

my temorary email expired lets use this instead b5015335@urhen.com

+1

thats true

+1

The number is too big 10^(10^10) is a googolplex 🤔

0

but where is the message section i dont find it