diff --git a/Basic_Concepts/Callback/README.md b/Basic_Concepts/Callback/README.md index 76ae19d..dcd5a01 100644 --- a/Basic_Concepts/Callback/README.md +++ b/Basic_Concepts/Callback/README.md @@ -36,4 +36,48 @@ The *.hide* action hides the area that is defined by the selector. For more information check the [W2schools' documentation on jQuery](http://www.w3schools.com/jquery/jquery_syntax.asp) +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Basic_Concepts/Closures/README.md b/Basic_Concepts/Closures/README.md index 4dd6bd7..5bd024d 100644 --- a/Basic_Concepts/Closures/README.md +++ b/Basic_Concepts/Closures/README.md @@ -35,4 +35,48 @@ In our example we used things like this. to manipulate our variables in a specia For more information please check the [W3schools Javascript closures' documentation page](http://www.w3schools.com/js/js_function_closures.asp). +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Basic_Concepts/Equality/README.md b/Basic_Concepts/Equality/README.md index 3c4fd4e..3f1005c 100644 --- a/Basic_Concepts/Equality/README.md +++ b/Basic_Concepts/Equality/README.md @@ -39,4 +39,48 @@ In order to have a better understanding of logical operators here are few more e For more informations please visit the documentation page of w3schools [about comparison and logical operators](http://www.w3schools.com/js/js_comparisons.asp). +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Basic_Concepts/Objects/README.md b/Basic_Concepts/Objects/README.md index 017cf5a..e97adb5 100644 --- a/Basic_Concepts/Objects/README.md +++ b/Basic_Concepts/Objects/README.md @@ -38,4 +38,48 @@ We achieve to insert more values in one variable by turning it to an object and - in Wikipedia Read more about [Javascript Objects](http://www.w3schools.com/js/js_objects.asp) in W3schools +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Basic_Concepts/Promise/README.md b/Basic_Concepts/Promise/README.md index a3e5063..3bb4df2 100644 --- a/Basic_Concepts/Promise/README.md +++ b/Basic_Concepts/Promise/README.md @@ -56,4 +56,48 @@ The *.append* action appends, with other words prints something to the selected For more information check the [W2schools' documentation on jQuery](http://www.w3schools.com/jquery/jquery_syntax.asp) +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Basic_Concepts/Prototype/README.md b/Basic_Concepts/Prototype/README.md index 22d93ed..a25efcb 100644 --- a/Basic_Concepts/Prototype/README.md +++ b/Basic_Concepts/Prototype/README.md @@ -70,4 +70,48 @@ We achieve to insert more values in one variable by turning it to an object and -> Written with [StackEdit](https://stackedit.io/). +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Basic_Concepts/Scope/README.md b/Basic_Concepts/Scope/README.md index cdc9999..d0579e9 100644 --- a/Basic_Concepts/Scope/README.md +++ b/Basic_Concepts/Scope/README.md @@ -37,4 +37,48 @@ In our example we used things like this. to manipulate our variables in a specia For more information please check the [W3schools Javascript closures' documentation page](http://www.w3schools.com/js/js_function_closures.asp). +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Arrays/Basics/README.md b/Data_Structures/Arrays/Basics/README.md index f85f6ae..8563ce7 100644 --- a/Data_Structures/Arrays/Basics/README.md +++ b/Data_Structures/Arrays/Basics/README.md @@ -13,6 +13,48 @@ This MD file serves as example/template. It will be filled up soon. (for example console.log) -=Links - -Wikipedia - -anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Arrays/Iterators/README.md b/Data_Structures/Arrays/Iterators/README.md index dd3ac2c..aabd365 100644 --- a/Data_Structures/Arrays/Iterators/README.md +++ b/Data_Structures/Arrays/Iterators/README.md @@ -13,6 +13,48 @@ This MD file serves as example/template. It will be filled up soon. (for example console.log) -=Links - -Wikipedia - -anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Arrays/New_ES6_Features_1/README.md b/Data_Structures/Arrays/New_ES6_Features_1/README.md index 9039a21..a228c44 100644 --- a/Data_Structures/Arrays/New_ES6_Features_1/README.md +++ b/Data_Structures/Arrays/New_ES6_Features_1/README.md @@ -13,6 +13,48 @@ This MD file serves as example/template. It will be filled up soon. (for example console.log) -=Links - -Wikipedia - -anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Arrays/New_ES6_Features_2/README.md b/Data_Structures/Arrays/New_ES6_Features_2/README.md index c0d84c4..d85b5ad 100644 --- a/Data_Structures/Arrays/New_ES6_Features_2/README.md +++ b/Data_Structures/Arrays/New_ES6_Features_2/README.md @@ -13,6 +13,48 @@ This MD file serves as example/template. It will be filled up soon. (for example console.log) -=Links - -Wikipedia - -anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Arrays/Searching/README.md b/Data_Structures/Arrays/Searching/README.md index 0c1c70c..6af1f60 100644 --- a/Data_Structures/Arrays/Searching/README.md +++ b/Data_Structures/Arrays/Searching/README.md @@ -13,6 +13,48 @@ This MD file serves as example/template. It will be filled up soon. (for example console.log) -=Links - -Wikipedia - -anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Arrays/Sorting/README.md b/Data_Structures/Arrays/Sorting/README.md index 28fcf85..711714c 100644 --- a/Data_Structures/Arrays/Sorting/README.md +++ b/Data_Structures/Arrays/Sorting/README.md @@ -13,6 +13,48 @@ This MD file serves as example/template. It will be filled up soon. (for example console.log) -=Links - -Wikipedia - -anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Dictionaries/README.md b/Data_Structures/Dictionaries/README.md index bb49125..8621021 100644 --- a/Data_Structures/Dictionaries/README.md +++ b/Data_Structures/Dictionaries/README.md @@ -30,4 +30,50 @@ In an dictionary we can do 4 basic actions, (please notice that as we did in our - **Lookup:** Thats is just an elaborate way to say that we wish to check, (to get actually), a value that is associated to a specific key. for example here we wish to prin the value of the key "keyname1" from the dictionary "dict": *console.log(dict['keyname1']);* -Sometimes instead of add or reassign there is a single set operation that adds a new (key,value) pair if one does not already exist, and otherwise reassigns it. \ No newline at end of file +Sometimes instead of add or reassign there is a single set operation that adds a new (key,value) pair if one does not already exist, and otherwise reassigns it. + +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Graphs/README.md b/Data_Structures/Graphs/README.md index 4417a91..5bf7c0b 100644 --- a/Data_Structures/Graphs/README.md +++ b/Data_Structures/Graphs/README.md @@ -13,6 +13,48 @@ This MD file serves as example/template. It will be filled up soon. (for example console.log) -=Links - -Wikipedia - -anotherlink,com +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Hash_Table/README.md b/Data_Structures/Hash_Table/README.md index 1d8ae5e..d14072c 100644 --- a/Data_Structures/Hash_Table/README.md +++ b/Data_Structures/Hash_Table/README.md @@ -16,6 +16,48 @@ values. (for example console.log) -=Links - -Wikipedia - -anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Linked_List/README.md b/Data_Structures/Linked_List/README.md index a068736..c2a63ca 100644 --- a/Data_Structures/Linked_List/README.md +++ b/Data_Structures/Linked_List/README.md @@ -2,4 +2,50 @@ A linked list is a linear collection of data elements, called nodes, pointing to the next node by means of a pointer. -![](http://i.imgur.com/1sQUEAG.png) +![](http://i.imgur.com/1sQUEAG.png) + +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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/). diff --git a/Data_Structures/Priority_Queue/README.md b/Data_Structures/Priority_Queue/README.md index c5d558e..566693a 100644 --- a/Data_Structures/Priority_Queue/README.md +++ b/Data_Structures/Priority_Queue/README.md @@ -3,3 +3,49 @@ A priority queue is like a regular queue or stack data structure, but where additionally each element has a "priority" associated with it. A real life example is the boarding line at the airport. First class passengers have priority over coach class passengers. + +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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/). diff --git a/Data_Structures/Queues/README.md b/Data_Structures/Queues/README.md index a6b8d54..e4d4572 100644 --- a/Data_Structures/Queues/README.md +++ b/Data_Structures/Queues/README.md @@ -1,3 +1,49 @@ # Queues Queues are similar to stacks, except they use the FIFO principle. + +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/Data_Structures/Recursion/README.md b/Data_Structures/Recursion/README.md index 027320d..2a21ffd 100644 --- a/Data_Structures/Recursion/README.md +++ b/Data_Structures/Recursion/README.md @@ -1,3 +1,49 @@ # Recursion -Recursion is an programming technique in which a function calls itself. +Recursion is an programming technique in which a function calls itself. + +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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/). diff --git a/Data_Structures/Sets/README.md b/Data_Structures/Sets/README.md index 83183bd..72a198f 100644 --- a/Data_Structures/Sets/README.md +++ b/Data_Structures/Sets/README.md @@ -1,3 +1,49 @@ # Sets -Sets are iterable objects that do not allow for duplicate values. +Sets are iterable objects that do not allow for duplicate values. + +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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/). diff --git a/Data_Structures/Stacks/README.md b/Data_Structures/Stacks/README.md index b185514..1d9af23 100644 --- a/Data_Structures/Stacks/README.md +++ b/Data_Structures/Stacks/README.md @@ -6,3 +6,49 @@ illustrated by thinking of your data set as a stack of plates or books where you stack in order to remove things from it. ![](http://i.imgur.com/dax54C9.jpg) + +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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/). diff --git a/Data_Structures/Trees/README.md b/Data_Structures/Trees/README.md index fb93a9d..fc7e8e5 100644 --- a/Data_Structures/Trees/README.md +++ b/Data_Structures/Trees/README.md @@ -1,3 +1,49 @@ # Trees Description + +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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/). diff --git a/ES6/Arrow_Functions/README.md b/ES6/Arrow_Functions/README.md index dea882b..3ab86c2 100644 --- a/ES6/Arrow_Functions/README.md +++ b/ES6/Arrow_Functions/README.md @@ -21,6 +21,48 @@ explaination and links for more) (for example console.log) -***Links*** - - Wikipedia - - Anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/ES6/Classes/README.md b/ES6/Classes/README.md index 4ed3950..7a5efe6 100644 --- a/ES6/Classes/README.md +++ b/ES6/Classes/README.md @@ -16,6 +16,48 @@ explaination and links for more) (for example console.log) -***Links*** - - Wikipedia - - Anotherlink,com +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/ES6/Constants/README.md b/ES6/Constants/README.md index 038e7c1..ffa3b7b 100644 --- a/ES6/Constants/README.md +++ b/ES6/Constants/README.md @@ -18,6 +18,48 @@ explaination and links for more) (for example console.log) -***Links*** - - Wikipedia - - Anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/ES6/Generators/README.md b/ES6/Generators/README.md index ece2162..870ee36 100644 --- a/ES6/Generators/README.md +++ b/ES6/Generators/README.md @@ -17,6 +17,48 @@ explaination and links for more) (for example console.log) -***Links*** - - Wikipedia - - Anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/ES6/Inheritance/README.md b/ES6/Inheritance/README.md index 0b8575e..a27c697 100644 --- a/ES6/Inheritance/README.md +++ b/ES6/Inheritance/README.md @@ -21,6 +21,48 @@ explaination and links for more) (for example console.log) -***Links*** - - Wikipedia - - Anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/ES6/Let/README.md b/ES6/Let/README.md index bc708e5..22460a0 100644 --- a/ES6/Let/README.md +++ b/ES6/Let/README.md @@ -16,6 +16,48 @@ explaination and links for more) (for example console.log) -***Links*** - - Wikipedia - - Anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/ES6/Spread_Operator/README.md b/ES6/Spread_Operator/README.md index fe3fa34..dab4102 100644 --- a/ES6/Spread_Operator/README.md +++ b/ES6/Spread_Operator/README.md @@ -17,6 +17,48 @@ explaination and links for more) (for example console.log) -***Links*** - - Wikipedia - - Anotherlink,com \ No newline at end of file +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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 diff --git a/ES6/Template_Literals/README.md b/ES6/Template_Literals/README.md index 9a2ee2d..fdeb68c 100644 --- a/ES6/Template_Literals/README.md +++ b/ES6/Template_Literals/README.md @@ -16,6 +16,48 @@ explaination and links for more) (for example console.log) -***Links*** - - Wikipedia - - Anotherlink,com +##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). + + function myFunction(p1, p2) { + return p1 * p2; // The function returns the product of p1 and p2 + } + +###**JavaScript Function Syntax** + +A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). + +Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). + +The parentheses may include parameter names separated by commas: +(parameter1, parameter2, ...) + +The code to be executed, by the function, is placed inside curly brackets: {} + + + function name(parameter1, parameter2, parameter3) { + code to be executed + } + + +Function **parameters** are the **names** listed in the function definition. + +Function **arguments** are the real **values** received by the function when it is invoked. + +Inside the function, the arguments behave as local variables. + +#The New Boston +## Links + +- [Support](https://www.patreon.com/thenewboston) +- [thenewboston.com](https://thenewboston.com/) +- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) +- [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