Skip to content

Circle Area Calculator This is a simple HTML + JavaScript project that calculates the **area of a circle** using the formula: \[ A = r^2 \times \pi \]

Notifications You must be signed in to change notification settings

JovanOps/JavaScriptCircle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”΅ Circle Area Calculator

This is a simple HTML + JavaScript project that calculates the area of a circle using the formula:

[ A = r^2 \times \pi ]


🌟 Features

  • Uses a JavaScript constant PI = 3.14
  • Hard-coded radius r = 5 (can be changed in the code)
  • Function calculates the circle area by formula area = r * r * PI
  • Prints result directly into the browser console

πŸ› οΈ Technologies Used

  • HTML5 – simple page structure
  • JavaScript (ES6) – calculation logic

πŸš€ Getting Started

  1. Clone or download the repository.
  2. Open circle_area.html in any modern browser.
  3. Open the developer console to view the output:
    • Chrome/Edge: F12 or Ctrl + Shift + I β†’ Console tab
    • Firefox: Ctrl + Shift + K
  4. You will see the calculation:
Screenshot (394)

About

Circle Area Calculator This is a simple HTML + JavaScript project that calculates the **area of a circle** using the formula: \[ A = r^2 \times \pi \]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages