|
|
|
@ -215,13 +215,6 @@ const numbers = [1, 2, 3, 4, 5];
|
|
|
|
|
//calling a function
|
|
|
|
|
console.log(sumArrayValues(numbers));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const areaOfCircle = (radius) => {
|
|
|
|
|
let area = Math.PI * radius * radius;
|
|
|
|
|
return area;
|
|
|
|
|
}
|
|
|
|
|
console.log(areaOfCircle(10))
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Function with unlimited number of parameters
|
|
|
|
@ -705,4 +698,4 @@ It Will be covered in other section.
|
|
|
|
|
|
|
|
|
|
🎉 CONGRATULATIONS ! 🎉
|
|
|
|
|
|
|
|
|
|
[<< Day 6](../06_Day_Loops/06_day_loops.md) | [Day 8 >>](../08_Day_Objects/08_day_objects.md)
|
|
|
|
|
[<< Day 6](../06_Day_Loops/06_day_loops.md) | [Day 8 >>](../08_Day_Objects/08_day_objects.md)
|
|
|
|
|