Write Reusable JavaScript with Functions[edit]

In JavaScript, we can divide up our code into reusable parts called functions.

Here's an example of a function:

function functionName() {

 console.log("Hello World");

} You can call or invoke this function by using its name followed by parentheses, like this:

functionName();

Each time the function is called it will print out the message "Hello World" on the dev console. All of the code between the curly braces will be executed every time the function is called.

Instructions Create a function called reusableFunction which prints "Hi World" to the dev console. Call the function. Run tests (ctrl + enter) Reset Help Bug /**

 * Your output will go here.
 * Any console.log() -type
 * statements will appear in
 * your browser's DevTools
 * JavaScript console.
 */

reusableFunction should be a function reusableFunction should output "Hi World" to the dev console Call reusableFunction after you define it

// Example function reusableFunction() {

 console.log("Hi World");

}

reusableFunction();

// Only change code below this line

DavidGreens (talk) 00:19, 4 July 2016 (UTC)[reply]

Blanks in recent edits?[edit]

Hello DavidGreens, please stop changing more articles and check your recent edits. It seems like they have added stray blanks for no apparent good reason. In some edits those blanks are just redundant. In some edits, for example when you add a blank in the middle of an actual URL, they invalidate and break the complete link. Please double-check the issue (are you trying to use a new script?), and revert all of your recent edits. You should also not use actual mainspace articles for testing. Thank you for your consideration. GermanJoe (talk) 13:54, 4 July 2016 (UTC)[reply]

Hi David, could you please explain what is going on? Otherwise your account may be blocked because its running an unauthorized script or bot. —Ruud 14:27, 4 July 2016 (UTC)[reply]

DavidGreens, you are invited to the Teahouse![edit]

Teahouse logo

Hi DavidGreens! Thanks for contributing to Wikipedia.
Be our guest at the Teahouse! The Teahouse is a friendly space where new editors can ask questions about contributing to Wikipedia and get help from experienced editors like Cordless Larry (talk).

We hope to see you there!

Delivered by HostBot on behalf of the Teahouse hosts

16:02, 4 July 2016 (UTC)

Speedy deletion nomination of User:DavidGreens[edit]

If this is the first article that you have created, you may want to read the guide to writing your first article.

You may want to consider using the Article Wizard to help you create articles.

A tag has been placed on User:DavidGreens, requesting that it be speedily deleted from Wikipedia. This has been done under section G11 of the criteria for speedy deletion, because the page seems to be unambiguous advertising which only promotes a company, product, group, service or person and would need to be fundamentally rewritten in order to become encyclopedic. Please read the guidelines on spam and Wikipedia:FAQ/Organizations for more information.

If you think this page should not be deleted for this reason, you may contest the nomination by visiting the page and clicking the button labelled "Contest this speedy deletion". This will give you the opportunity to explain why you believe the page should not be deleted. However, be aware that once a page is tagged for speedy deletion, it may be removed without delay. Please do not remove the speedy deletion tag from the page yourself, but do not hesitate to add information in line with Wikipedia's policies and guidelines. If the page is deleted, and you wish to retrieve the deleted material for future reference or improvement, then please contact the deleting administrator. Denniss (talk) 05:35, 5 July 2016 (UTC)[reply]

July 2016[edit]

Stop icon with clock
You have been blocked from editing for a period of 1 week for making test edits in the main namespace. Please use the sandbox for this purpose. Please acknowledge this message to have your account unblocked. Once the block has expired, you are welcome to make useful contributions. If you think there are good reasons why you should be unblocked, you may appeal this block by first reading the guide to appealing blocks, then adding the following text to the bottom of your talk page: ((unblock|reason=Your reason here ~~~~)).  —Ruud 11:08, 7 July 2016 (UTC)[reply]

Cite error: There are <ref> tags on this page without content in them (see the help page).Add assessment to help page[edit]

WikiProject iconWikipedia Help A‑class High‑importance
WikiProject iconThis article is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
AThis article has been rated as A-class on the project's quality scale.
HighThis article has been rated as High-importance on the project's importance scale.
wikimedia/service-template-node - Travis CI

https://travis-ci.org/wikimedia/service-template-node/requests rc://irc.freenode.net/wikimedia-tech https://docs.npmjs.com/misc/config Introductions, there have been 0 new thread(s) and 1 updated thread(s). http://forums.windowscentral.com/forumdisplay.php?f=310


Web more Inbox [ethereum/mist] Refactor minimongo sync to avoid storing data in browser localStorage (#935) R Ramesh Nair to ethereum/mist 4 days agoDetails WIP

You can view, comment on, or merge this pull request online at:

 https://github.com/ethereum/mist/pull/935

Commit Summary

work towards new minimonogo sync File Changes

M interface/client/collections.js (4) M interface/client/lib/thirdParty.js (2) M main.js (42) A modules/db.js (34) M modules/ethereumNode.js (2) M modules/settings.js (4) M modules/syncMinimongo.js (72) M modules/windows.js (2) M npm-shrinkwrap.json (1409) M package.json (1) Patch Links:

https://github.com/ethereum/mist/pull/935.patch https://github.com/ethereum/mist/pull/935.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

R Ramesh Nair to ethereum/mist, Push 2 days agoDetails @hiddentao pushed 2 commits.

8ff7993 Merge branch 'develop' into minimongo bd253e6 got basic persistence working — You are receiving this because you are subscribed to this thread. View it on GitHub or mute the thread. F Fabian Vogelsteller to ethereum/mist 1 day agoDetails In interface/client/templates/layout/sidebar.js:

> @@ -74,7 +74,7 @@ Template['layout_sidebar'].helpers({ > var template = Template.instance(); > > if(this._id === 'browser') { > - return DoogleLastVisitedPages.find({},{sort: {timestamp: -1}, limit: 25}); Why you changed from last visited pages to tabs? this are two different things.

R Ramesh Nair to ethereum/mist 22 hours agoDetails In interface/client/templates/layout/sidebar.js:

> @@ -74,7 +74,7 @@ Template['layout_sidebar'].helpers({ > var template = Template.instance(); > > if(this._id === 'browser') { > - return DoogleLastVisitedPages.find({},{sort: {timestamp: -1}, limit: 25}); Haha, I was doing some find-and-replace work and I thought I'd accidentally overwritten Tabs, especially because i kept getting an undefined error in the browser. Will fix.

R Ramesh Nair to ethereum/mist, Push 22 hours agoDetails @hiddentao pushed 1 commit.

3903d30 minor error — You are receiving this because you are subscribed to this thread. View it on GitHub or mute the thread. R Ramesh Nair to ethereum/mist 22 hours agoDetails In interface/client/templates/layout/sidebar.js:

> @@ -74,7 +74,7 @@ Template['layout_sidebar'].helpers({ > var template = Template.instance(); > > if(this._id === 'browser') { > - return DoogleLastVisitedPages.find({},{sort: {timestamp: -1}, limit: 25}); Now fixed.


The following threads are new:


The following threads have been updated:

Windows Phone > Android > Windows Mobile 10 http://forums.windowscentral.com/showthread.php?t=431307 In forum: Introductions Started by: Sebastian Verweyen Last post: 07-12-2016 03:12 PM

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

       "http://www.w3.org/TR/REC-html40/loose.dtd">

irc://irc.freenode.net/wikimedia-office https://github.com/FGMEMBERS/c172p-detailed/wiki/_new https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fsupport.xbox.com%2Fen-US%2Fxbox-live-status%3Ficid%3Dfurl_servicealerts&ref_src=twsrc%5Etfw&text=Xbox%20Live%20Status&tw_p=tweetbutton&url=https%3A%2F%2Fsupport.xbox.com%2Fen-US%2Fxbox-live-status%3Ficid%3Dfurl_servicealerts%23XboxLiveCoreServices&via=xboxsupport

https://events.google.com/io2016/



<a shape="rect" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/3.0/88x31.png"></img> </a>

This work is licensed under a <a shape="rect" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a> . Creative Commons — Copyright-Only Dedication (based on United States law) or Public Domain Certification https://creativecommons.org/licenses/publicdomain/

§DavidGreens (talk) 20:45, 22 August 2016 (UTC) @Hektve87[reply]