Devils Tear Posted December 7, 2015 Report Share Posted December 7, 2015 how do i find the square root for each number up to 500 with out typing each number in. this is what i did so far <html> <body> <script type="text/javascript"> var number = {}; var size = 500; for(i=0; i<=500; i++){ number = i * i } Link to comment Share on other sites More sharing options...

justsomeguy Posted December 7, 2015 Report Share Posted December 7, 2015 If you want to find the square root then use Math.sqrt. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sqrt Link to comment Share on other sites More sharing options...

## Recommended Posts

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account## Sign in

Already have an account? Sign in here.

Sign In Now