Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
vault backup: 2023-12-09 17:10:50
Browse files Browse the repository at this point in the history
  • Loading branch information
liamfrazer committed Dec 9, 2023
1 parent 8dfff81 commit df83c87
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/React/The Complete Guide Docs/functions and parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,16 @@ greet("Frazer") // Hello Frazer

* Whenever you create functions, you should describe what's inside of it, or what it does
* Functions can also be used for producing and returning values
* They should be named to ensure it's very clear what a function does
* They should be named to ensure it's very clear what a function does

```js
function combine(a, b, c) {
return a * b / c
}

console.log(combine(2, 3, 4)) // 1.5
```

## Arrow Functions
* Arrow functions are very popular with anonymous functions, where the function does not need a name
*

0 comments on commit df83c87

Please sign in to comment.