0

Implement a function circleLength that calculates and returns the length of the circle given its radius

helper.js const PI = 3.14159265359; export const circleLength = (radius) => { return PI * 4 / radius; } solution.js /** * Implement a function circleLength that calculates the length of the circle given its radius * */ import { circleLength } from './helper.js'; console.log(circleLength(5)); console.log(circleLength(12));

2nd Jun 2021, 9:26 PM
ohwo oghenekaro
ohwo oghenekaro - avatar
1 Resposta