diff --git a/docs/React/The Complete Guide Docs/functions and parameters.md b/docs/React/The Complete Guide Docs/functions and parameters.md index 599d72883..6abe7b36d 100644 --- a/docs/React/The Complete Guide Docs/functions and parameters.md +++ b/docs/React/The Complete Guide Docs/functions and parameters.md @@ -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 \ No newline at end of file +* 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 +*