<!DOCTYPE html> <html lang="ko"> <head> <meta name="viewport" content="width=device-width"> <meta charset="UTF-8"> <link rel="stylesheet" href="https://meyerweb.com/eric/tools/css/reset/reset.css"> <title>Circle Area</title> </head> <body> <script> // 반지름이 10인 원의 넓이를 구해 출력 // 변수의 선언과 초기화 var radius = 10; // 원의 반지름 var pi = 3.14; // 원주율 // var area = pi * radius * radius; var area = pi * radius ** 2; // 원의 넓이 // 원의 넓이를 출력 console.log('Area of the circle = ', area); </script> </body> </html>