From 65df928b9bfd06ccd2c09ecee9b25ad4d733c02b Mon Sep 17 00:00:00 2001 From: Yash Karanke <16697307+dextel2@users.noreply.github.com> Date: Mon, 27 Sep 2021 15:52:42 +0530 Subject: [PATCH] minor changes fixed markdown --- ES6/Spread_Operator/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ES6/Spread_Operator/README.md b/ES6/Spread_Operator/README.md index dab4102..dd920de 100644 --- a/ES6/Spread_Operator/README.md +++ b/ES6/Spread_Operator/README.md @@ -17,19 +17,19 @@ explaination and links for more) (for example console.log) -##Javascript functions +## Javascript functions According to W3schools: A JavaScript function is a block of code designed to perform a particular task. A JavaScript function is executed when "something" invokes it (calls it). - +```js function myFunction(p1, p2) { return p1 * p2; // The function returns the product of p1 and p2 } - -###**JavaScript Function Syntax** +``` +### **JavaScript Function Syntax** A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). @@ -40,11 +40,11 @@ The parentheses may include parameter names separated by commas: The code to be executed, by the function, is placed inside curly brackets: {} - +```js function name(parameter1, parameter2, parameter3) { code to be executed } - +``` Function **parameters** are the **names** listed in the function definition. @@ -52,7 +52,7 @@ Function **arguments** are the real **values** received by the function when it Inside the function, the arguments behave as local variables. -#The New Boston +# The New Boston ## Links - [Support](https://www.patreon.com/thenewboston) @@ -61,4 +61,4 @@ Inside the function, the arguments behave as local variables. - [Twitter](https://twitter.com/bucky_roberts) - [Google+](https://plus.google.com/+BuckyRoberts) - [reddit](https://www.reddit.com/r/thenewboston/) -> Written with [StackEdit](https://stackedit.io/). \ No newline at end of file +> Written with [StackEdit](https://stackedit.io/).