MCPcopy Create free account
hub / github.com/JerePrograma/FullStackEgg / calcularArea

Function calcularArea

Etapa4JavaScript/ejercicio15.js:5–7  ·  view source on GitHub ↗
(radio)

Source from the content-addressed store, hash-verified

3// con la propiedad radio. Nota: Cree dos métodos para calcular el área y el perímetro. El
4// radio del círculo lo proporcionará el usuario
5function calcularArea(radio) {
6 return Math.PI * Math.pow(radio, 2);
7}
8function calcularPerimetro(radio) {
9 return 2 * Math.PI * radio;
10}

Callers 1

CirculoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected