Skip to content

Commit b285ca4

Browse files
authored
one line printFullName arrow function fix
1 parent 0dd4d7e commit b285ca4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

07_Day/07_day_functions.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,7 @@ console.log(printFullName('Asabeneh', 'Yetayeh'))
319319
The above function has only the return statement, therefore, we can explicitly return it as follows.
320320

321321
```js
322-
const printFullName = (firstName, lastName) => {
323-
return `${firstName} ${lastName}`
324-
}
322+
const printFullName = (firstName, lastName) => `${firstName} ${lastName}`
325323

326324
console.log(printFullName('Asabeneh', 'Yetayeh'))
327325
```

0 commit comments

Comments
 (0)