You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
359 B
JavaScript
22 lines
359 B
JavaScript
3 years ago
|
// const PI = Math.PI;
|
||
|
// const E = Math.E;
|
||
|
// const SQRT2 = Math.SQRT2;
|
||
|
|
||
|
const { PI, E, SQRT2 } = Math;
|
||
|
|
||
|
// With require
|
||
|
// const { readFile } = require('fs');
|
||
|
|
||
|
|
||
|
// const circle = {
|
||
|
// label: 'circleX',
|
||
|
// radius: 2,
|
||
|
// };
|
||
|
//
|
||
|
// const circleArea = ({ radius }) =>
|
||
|
// (PI * radius * radius).toFixed(2);
|
||
|
//
|
||
|
// console.log(
|
||
|
// circleArea(circle)
|
||
|
// );
|