In a function we can pass different data types(number, string, boolean, object, function) as a parameter.
@ -138,7 +138,7 @@ function square(number) {
console.log(square(10))
```
#### Function with two parameters
### Function with two parameters
```js
// function with two parameters
@ -165,7 +165,7 @@ function printFullName(firstName, lastName) {
console.log(printFullName('Asabeneh', 'Yetayeh'))
```
#### Function with many parameters
### Function with many parameters
```js
// function with multiple parameters
@ -196,7 +196,7 @@ console.log(areaOfCircle(10))
```
#### Function with unlimited number of parameters
### Function with unlimited number of parameters
Sometimes we do not know how many arguments the user going to pass. Therefore, we should know how to write a function which can take unlimited number of arguments. A function declaration provides a function scoped arguments array like object. Any thing we passed as argument in the function can be access from arguments. Let us see an example