Skip to content

Commit 6d6a4dd

Browse files
authored
Day Error fixes
1 parent 4acb3ac commit 6d6a4dd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎07_Day/07_day_functions.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ addTwoNumbers() // function has to be called to be executed by it name
8080
```
8181

8282
```js
83-
function generateFullName ():
83+
function generateFullName (){
8484
let firstName = 'Asabeneh'
8585
let lastName = 'Yetayeh'
8686
let space = ' '
8787
let fullName = firstName + space + lastName
8888
console.log(fullName)
89+
}
8990
generateFullName() // calling a function
9091
```
9192

@@ -94,12 +95,13 @@ addTwoNumbers() // function has to be called to be executed by it name
9495
Function can also return values, if a function does not return values the value of the function is undefined. Let us write the above functions with return. From now on, we return value to a function instead of printing it.
9596

9697
```js
97-
function generateFullName ():
98+
function generateFullName (){
9899
let firstName = 'Asabeneh'
99100
let lastName = 'Yetayeh'
100101
let space = ' '
101102
let fullName = firstName + space + lastName
102103
return fullName
104+
}
103105
console.log(generateFullName())
104106

105107
function addTwoNumbers {

0 commit comments

Comments
 (0)