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));
1 Réponse
+ 2
Refer given below links:
https://www.w3resource.com/javascript-exercises/javascript-object-exercise-9.php
https://www.javatpoint.com/how-to-calculate-the-perimeter-and-area-of-a-circle-using-javascript
https://www.assignmentexpert.com/homework-answers/programming-and-computer-science/htmljs-webapp/question-175460
https://www.codecademy.com/forum_questions/5418839a548c35e7fd004dd0
Hope this helps.