Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>JS Bin</title>
  </head>
  <body>
  </body>
</html>
 
/*
1. Convert the function below to an arrow function
2. Store the arrow function in a variable named `areaOfCircle` using `const`
*/
  function areaOfCircle(radius){
    return Math.PI * (radius**2)
  }
// Add your code below
// DO NOT MODIFY
console.log(areaOfCircle(9))
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x