html - calculate radius of a circle using javascript -


I am trying to calculate the radius of a circle using javascript.

  .circle {position: absolute; width: 100px; height: 100 pixels; border-radius: 70px; background: red;}  
< Pre class = "snippet-code-html lang-html prettyprint-override"> section class = "circle">

The width and height of this circle is 100x100. How do I calculate my radius?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -