<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.everybodywiki.com/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Basics</id>
	<title>JavaScript Basics - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.everybodywiki.com/index.php?action=history&amp;feed=atom&amp;title=JavaScript_Basics"/>
	<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;action=history"/>
	<updated>2026-08-01T16:13:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.6</generator>
	<entry>
		<id>https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=4663850&amp;oldid=prev</id>
		<title>WikiMasterBot2: replace single = by ==</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=4663850&amp;oldid=prev"/>
		<updated>2025-01-14T18:43:36Z</updated>

		<summary type="html">&lt;p&gt;replace single = by ==&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:43, 14 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{AfC topic|stem}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{AfC topic|stem}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= JavaScript Basics =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/ins&gt;= JavaScript Basics &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/ins&gt;=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Variables ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Variables ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiMasterBot2</name></author>
	</entry>
	<entry>
		<id>https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=3092658&amp;oldid=prev</id>
		<title>WikiMasterBot2: Moved page from wikipedia:en:Draft:JavaScript Basics (history)</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=3092658&amp;oldid=prev"/>
		<updated>2022-11-21T09:33:37Z</updated>

		<summary type="html">&lt;p&gt;Moved page from &lt;a href=&quot;https://en.wikipedia.org/wiki/en:Draft:JavaScript_Basics&quot; class=&quot;extiw&quot; title=&quot;wikipedia:en:Draft:JavaScript Basics&quot;&gt;wikipedia:en:Draft:JavaScript Basics&lt;/a&gt; ([[Edithistory:|history]])&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:33, 21 November 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{AFC submission|d|e|u=PantherPedia|ns=118|decliner=Mcmatter|declinets=20220829021031|reject=yes|ts=20220829012447}} &amp;lt;!-- Do not remove this line! --&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{AFC comment|1=[[WP:NOTHOWTO]] [[User:Mcmatter|McMatter]] &amp;lt;sup&amp;gt;([[User talk:Mcmatter|talk]])&amp;lt;/sup&amp;gt;/&amp;lt;sub&amp;gt;([[Special:Contributions/Mcmatter|contrib]])&amp;lt;/sub&amp;gt; 02:10, 29 August 2022 (UTC)}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{AFC comment|1=[[WP:NOTHOWTO]] [[User:Mcmatter|McMatter]] &amp;lt;sup&amp;gt;([[User talk:Mcmatter|talk]])&amp;lt;/sup&amp;gt;/&amp;lt;sub&amp;gt;([[Special:Contributions/Mcmatter|contrib]])&amp;lt;/sub&amp;gt; 02:10, 29 August 2022 (UTC)}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiMasterBot2</name></author>
	</entry>
	<entry>
		<id>https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=2860500&amp;oldid=prev</id>
		<title>WikiMasterBot2: Moved page from wikipedia:en:Draft:JavaScript Basics (history)</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=2860500&amp;oldid=prev"/>
		<updated>2022-09-22T01:20:37Z</updated>

		<summary type="html">&lt;p&gt;Moved page from &lt;a href=&quot;https://en.wikipedia.org/wiki/en:Draft:JavaScript_Basics&quot; class=&quot;extiw&quot; title=&quot;wikipedia:en:Draft:JavaScript Basics&quot;&gt;wikipedia:en:Draft:JavaScript Basics&lt;/a&gt; ([[Edithistory:|history]])&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:20, 22 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Variables ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Variables ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Variables&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/del&gt;&amp;lt;ref&amp;gt;{{Citation |title=Variable (computer science) |date=2022-08-19 |url=https://en.wikipedia.org/w/index.php?title=Variable_(computer_science)&amp;amp;oldid=1105315140 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; are data stored as a value in a named space. Variables can be used as a mathematical constant&amp;lt;ref&amp;gt;{{Citation |title=Constant (mathematics) |date=2022-06-02 |url=https://en.wikipedia.org/w/index.php?title=Constant_(mathematics)&amp;amp;oldid=1091159181 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;to use in math commands to generate a user output&amp;lt;ref name=&quot;:0&quot;&amp;gt;{{Citation |title=Input/output |date=2022-08-28 |url=https://en.wikipedia.org/w/index.php?title=Input/output&amp;amp;oldid=1107158004 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;such as e&amp;lt;ref&amp;gt;{{Citation |title=e (mathematical constant) |date=2022-08-26 |url=https://en.wikipedia.org/w/index.php?title=E_(mathematical_constant)&amp;amp;oldid=1106854025 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;which has a value of 2.718281828459045. To declare a new constant, type the keyword &quot;const&quot;&amp;lt;ref&amp;gt;{{Citation |title=const (computer programming) |date=2022-08-20 |url=https://en.wikipedia.org/w/index.php?title=Const_(computer_programming)&amp;amp;oldid=1105407141 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;and add the [[JavaScript syntax#Declaration and assignment|assignment declaration]]. Add the value to declare the constant. Note that constants cannot be changed afterward, which should be self-explanatory. Normal variables work the same way, and can be changed accordingly depending on user input. Variables can also hold strings&amp;lt;ref&amp;gt;{{Citation |title=String (computer science) |date=2022-08-01 |url=https://en.wikipedia.org/w/index.php?title=String_(computer_science)&amp;amp;oldid=1101756832 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;which is useful for input such as authorization&amp;lt;ref&amp;gt;{{Citation |title=Authorization |date=2022-08-18 |url=https://en.wikipedia.org/w/index.php?title=Authorization&amp;amp;oldid=1105166484 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; or for a search engine&amp;lt;ref&amp;gt;{{Citation |title=Search engine |date=2022-08-28 |url=https://en.wikipedia.org/w/index.php?title=Search_engine&amp;amp;oldid=1107150189 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. &lt;/del&gt;Variables can also identify as undefined&amp;lt;ref&amp;gt;{{Citation |title=Undefined value |date=2021-12-09 |url=https://en.wikipedia.org/w/index.php?title=Undefined_value&amp;amp;oldid=1059485044 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; or null&amp;lt;ref&amp;gt;{{Citation |title=Null character |date=2022-08-10 |url=https://en.wikipedia.org/w/index.php?title=Null_character&amp;amp;oldid=1103680343 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Variables&amp;lt;ref&amp;gt;{{Citation |title=Variable (computer science) |date=2022-08-19 |url=https://en.wikipedia.org/w/index.php?title=Variable_(computer_science)&amp;amp;oldid=1105315140 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; are data stored as a value in a named space. Variables can be used as a mathematical constant&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=Constant (mathematics) |date=2022-06-02 |url=https://en.wikipedia.org/w/index.php?title=Constant_(mathematics)&amp;amp;oldid=1091159181 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; to use in math commands to generate a user output&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/ins&gt;&amp;lt;ref name=&quot;:0&quot;&amp;gt;{{Citation |title=Input/output |date=2022-08-28 |url=https://en.wikipedia.org/w/index.php?title=Input/output&amp;amp;oldid=1107158004 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; such as e&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=e (mathematical constant) |date=2022-08-26 |url=https://en.wikipedia.org/w/index.php?title=E_(mathematical_constant)&amp;amp;oldid=1106854025 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; which has a value of 2.718281828459045. To declare a new constant, type the keyword &quot;const&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=const (computer programming) |date=2022-08-20 |url=https://en.wikipedia.org/w/index.php?title=Const_(computer_programming)&amp;amp;oldid=1105407141 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; and add the [[JavaScript syntax#Declaration and assignment|assignment declaration]]. Add the value to declare the constant. Note that constants cannot be changed afterward, which should be self-explanatory. Normal variables work the same way, and can be changed accordingly depending on user input. Variables can also hold strings&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=String (computer science) |date=2022-08-01 |url=https://en.wikipedia.org/w/index.php?title=String_(computer_science)&amp;amp;oldid=1101756832 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; which is useful for input such as authorization&amp;lt;ref&amp;gt;{{Citation |title=Authorization |date=2022-08-18 |url=https://en.wikipedia.org/w/index.php?title=Authorization&amp;amp;oldid=1105166484 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; or for a search engine&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=Search engine |date=2022-08-28 |url=https://en.wikipedia.org/w/index.php?title=Search_engine&amp;amp;oldid=1107150189 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; Variables can also identify as undefined&amp;lt;ref&amp;gt;{{Citation |title=Undefined value |date=2021-12-09 |url=https://en.wikipedia.org/w/index.php?title=Undefined_value&amp;amp;oldid=1059485044 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; or null&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=Null character |date=2022-08-10 |url=https://en.wikipedia.org/w/index.php?title=Null_character&amp;amp;oldid=1103680343 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Functions ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Functions ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Event Keywords ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Event Keywords ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Event (computing)|Events]] is a trigger usually initiated by user input&amp;lt;ref name=&quot;:0&quot; /&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;which allows certain blocks of code to execute. Here&#039;s a [[HTML attribute#Event attributes|complete list]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Event (computing)|Events]] is a trigger usually initiated by user input&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/ins&gt;&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which allows certain blocks of code to execute. Here&#039;s a [[HTML attribute#Event attributes|complete list]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== WebSockets and User Connections ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== WebSockets and User Connections ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;User connections include social networking&amp;lt;ref&amp;gt;{{Citation |title=Social networking service |date=2022-08-22 |url=https://en.wikipedia.org/w/index.php?title=Social_networking_service&amp;amp;oldid=1105837230 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;messaging between users&amp;lt;ref&amp;gt;{{Citation |title=Message |date=2022-07-26 |url=https://en.wikipedia.org/w/index.php?title=Message&amp;amp;oldid=1100585875 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;or playing an online game&amp;lt;ref&amp;gt;{{Citation |title=Multiplayer video game |date=2022-08-12 |url=https://en.wikipedia.org/w/index.php?title=Multiplayer_video_game&amp;amp;oldid=1104068378 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. &lt;/del&gt;WebSocket&amp;lt;ref&amp;gt;{{Citation |title=WebSocket |date=2022-08-06 |url=https://en.wikipedia.org/w/index.php?title=WebSocket&amp;amp;oldid=1102718692 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; is a protocol used for seamless and fast communication listening on a port&amp;lt;ref&amp;gt;{{Citation |title=Port (computer networking) |date=2022-08-04 |url=https://en.wikipedia.org/w/index.php?title=Port_(computer_networking)&amp;amp;oldid=1102379124 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. &lt;/del&gt;Encoded messages are sent over this line, usually in a JSON format&amp;lt;ref&amp;gt;{{Citation |title=JSON |date=2022-08-25 |url=https://en.wikipedia.org/w/index.php?title=JSON&amp;amp;oldid=1106610160 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. &lt;/del&gt;WebSocket is supported by [[Google Chrome]], [[Firefox]], [[Safari (web browser)|Safari]], [[Microsoft Edge]], [[Internet Explorer]], and [[Opera (web browser)|Opera]]. This server can be utilized with a variable. Declare a variable and set the value to &quot;new WebSocket()&quot;. Inside of the parentheses put the [[URL|URL (Uniform Resource Locator)]] of your WebSocket connection. Create custom functions for this to create a [[Instant messaging|chat application]] or another idea.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;User connections include social networking&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=Social networking service |date=2022-08-22 |url=https://en.wikipedia.org/w/index.php?title=Social_networking_service&amp;amp;oldid=1105837230 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; messaging between users&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=Message |date=2022-07-26 |url=https://en.wikipedia.org/w/index.php?title=Message&amp;amp;oldid=1100585875 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; or playing an online game&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=Multiplayer video game |date=2022-08-12 |url=https://en.wikipedia.org/w/index.php?title=Multiplayer_video_game&amp;amp;oldid=1104068378 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; WebSocket&amp;lt;ref&amp;gt;{{Citation |title=WebSocket |date=2022-08-06 |url=https://en.wikipedia.org/w/index.php?title=WebSocket&amp;amp;oldid=1102718692 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; is a protocol used for seamless and fast communication listening on a port&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=Port (computer networking) |date=2022-08-04 |url=https://en.wikipedia.org/w/index.php?title=Port_(computer_networking)&amp;amp;oldid=1102379124 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; Encoded messages are sent over this line, usually in a JSON format&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&amp;lt;ref&amp;gt;{{Citation |title=JSON |date=2022-08-25 |url=https://en.wikipedia.org/w/index.php?title=JSON&amp;amp;oldid=1106610160 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; WebSocket is supported by [[Google Chrome]], [[Firefox]], [[Safari (web browser)|Safari]], [[Microsoft Edge]], [[Internet Explorer]], and [[Opera (web browser)|Opera]]. This server can be utilized with a variable. Declare a variable and set the value to &quot;new WebSocket()&quot;. Inside of the parentheses put the [[URL|URL (Uniform Resource Locator)]] of your WebSocket connection. Create custom functions for this to create a [[Instant messaging|chat application]] or another idea.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Recap ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Recap ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiMasterBot2</name></author>
	</entry>
	<entry>
		<id>https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=2823473&amp;oldid=prev</id>
		<title>WikiMasterBot2: Moved page from wikipedia:en:Draft:JavaScript Basics (history)</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=2823473&amp;oldid=prev"/>
		<updated>2022-09-02T00:26:29Z</updated>

		<summary type="html">&lt;p&gt;Moved page from &lt;a href=&quot;https://en.wikipedia.org/wiki/en:Draft:JavaScript_Basics&quot; class=&quot;extiw&quot; title=&quot;wikipedia:en:Draft:JavaScript Basics&quot;&gt;wikipedia:en:Draft:JavaScript Basics&lt;/a&gt; ([[Edithistory:|history]])&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{AFC submission|d|e|u=PantherPedia|ns=118|decliner=Mcmatter|declinets=20220829021031|reject=yes|ts=20220829012447}} &amp;lt;!-- Do not remove this line! --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{AFC comment|1=[[WP:NOTHOWTO]] [[User:Mcmatter|McMatter]] &amp;lt;sup&amp;gt;([[User talk:Mcmatter|talk]])&amp;lt;/sup&amp;gt;/&amp;lt;sub&amp;gt;([[Special:Contributions/Mcmatter|contrib]])&amp;lt;/sub&amp;gt; 02:10, 29 August 2022 (UTC)}}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
{{Short description|JavaScript Basics Tutorial}}&lt;br /&gt;
{{Draft topics|media|stem}}&lt;br /&gt;
{{AfC topic|stem}}&lt;br /&gt;
&lt;br /&gt;
= JavaScript Basics =&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
Variables.&amp;lt;ref&amp;gt;{{Citation |title=Variable (computer science) |date=2022-08-19 |url=https://en.wikipedia.org/w/index.php?title=Variable_(computer_science)&amp;amp;oldid=1105315140 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; are data stored as a value in a named space. Variables can be used as a mathematical constant&amp;lt;ref&amp;gt;{{Citation |title=Constant (mathematics) |date=2022-06-02 |url=https://en.wikipedia.org/w/index.php?title=Constant_(mathematics)&amp;amp;oldid=1091159181 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;, to use in math commands to generate a user output&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;{{Citation |title=Input/output |date=2022-08-28 |url=https://en.wikipedia.org/w/index.php?title=Input/output&amp;amp;oldid=1107158004 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;, such as e&amp;lt;ref&amp;gt;{{Citation |title=e (mathematical constant) |date=2022-08-26 |url=https://en.wikipedia.org/w/index.php?title=E_(mathematical_constant)&amp;amp;oldid=1106854025 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;, which has a value of 2.718281828459045. To declare a new constant, type the keyword &amp;quot;const&amp;quot;&amp;lt;ref&amp;gt;{{Citation |title=const (computer programming) |date=2022-08-20 |url=https://en.wikipedia.org/w/index.php?title=Const_(computer_programming)&amp;amp;oldid=1105407141 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;, and add the [[JavaScript syntax#Declaration and assignment|assignment declaration]]. Add the value to declare the constant. Note that constants cannot be changed afterward, which should be self-explanatory. Normal variables work the same way, and can be changed accordingly depending on user input. Variables can also hold strings&amp;lt;ref&amp;gt;{{Citation |title=String (computer science) |date=2022-08-01 |url=https://en.wikipedia.org/w/index.php?title=String_(computer_science)&amp;amp;oldid=1101756832 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;, which is useful for input such as authorization&amp;lt;ref&amp;gt;{{Citation |title=Authorization |date=2022-08-18 |url=https://en.wikipedia.org/w/index.php?title=Authorization&amp;amp;oldid=1105166484 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; or for a search engine&amp;lt;ref&amp;gt;{{Citation |title=Search engine |date=2022-08-28 |url=https://en.wikipedia.org/w/index.php?title=Search_engine&amp;amp;oldid=1107150189 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;. Variables can also identify as undefined&amp;lt;ref&amp;gt;{{Citation |title=Undefined value |date=2021-12-09 |url=https://en.wikipedia.org/w/index.php?title=Undefined_value&amp;amp;oldid=1059485044 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; or null&amp;lt;ref&amp;gt;{{Citation |title=Null character |date=2022-08-10 |url=https://en.wikipedia.org/w/index.php?title=Null_character&amp;amp;oldid=1103680343 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Functions ===&lt;br /&gt;
Functions&amp;lt;ref&amp;gt;{{Citation |title=Function object |date=2022-04-22 |url=https://en.wikipedia.org/w/index.php?title=Function_object&amp;amp;oldid=1084126278 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; are a keyword used in [[object-oriented programming]]. These are used to run code multiple times, for example, a login button. They can setup the procedure and insert it inside of a function named &amp;#039;&amp;#039;loginProcedure&amp;#039;&amp;#039;. Using the [[Document Object Model]], they can have the function execute when an [[HTML element]] is clicked.&lt;br /&gt;
&lt;br /&gt;
=== Event Keywords ===&lt;br /&gt;
[[Event (computing)|Events]] is a trigger usually initiated by user input&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;, which allows certain blocks of code to execute. Here&amp;#039;s a [[HTML attribute#Event attributes|complete list]].&lt;br /&gt;
&lt;br /&gt;
=== WebSockets and User Connections ===&lt;br /&gt;
User connections include social networking&amp;lt;ref&amp;gt;{{Citation |title=Social networking service |date=2022-08-22 |url=https://en.wikipedia.org/w/index.php?title=Social_networking_service&amp;amp;oldid=1105837230 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;, messaging between users&amp;lt;ref&amp;gt;{{Citation |title=Message |date=2022-07-26 |url=https://en.wikipedia.org/w/index.php?title=Message&amp;amp;oldid=1100585875 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;, or playing an online game&amp;lt;ref&amp;gt;{{Citation |title=Multiplayer video game |date=2022-08-12 |url=https://en.wikipedia.org/w/index.php?title=Multiplayer_video_game&amp;amp;oldid=1104068378 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;. WebSocket&amp;lt;ref&amp;gt;{{Citation |title=WebSocket |date=2022-08-06 |url=https://en.wikipedia.org/w/index.php?title=WebSocket&amp;amp;oldid=1102718692 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt; is a protocol used for seamless and fast communication listening on a port&amp;lt;ref&amp;gt;{{Citation |title=Port (computer networking) |date=2022-08-04 |url=https://en.wikipedia.org/w/index.php?title=Port_(computer_networking)&amp;amp;oldid=1102379124 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;. Encoded messages are sent over this line, usually in a JSON format&amp;lt;ref&amp;gt;{{Citation |title=JSON |date=2022-08-25 |url=https://en.wikipedia.org/w/index.php?title=JSON&amp;amp;oldid=1106610160 |work=Wikipedia |language=en |access-date=2022-08-29}}&amp;lt;/ref&amp;gt;. WebSocket is supported by [[Google Chrome]], [[Firefox]], [[Safari (web browser)|Safari]], [[Microsoft Edge]], [[Internet Explorer]], and [[Opera (web browser)|Opera]]. This server can be utilized with a variable. Declare a variable and set the value to &amp;quot;new WebSocket()&amp;quot;. Inside of the parentheses put the [[URL|URL (Uniform Resource Locator)]] of your WebSocket connection. Create custom functions for this to create a [[Instant messaging|chat application]] or another idea.&lt;br /&gt;
&lt;br /&gt;
=== Recap ===&lt;br /&gt;
View the references for more info on this topic. Event keywords, WebSockets, Functions, and Variables were all listed in this page.&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
// Variables&lt;br /&gt;
var variable = 1;&lt;br /&gt;
const constant = 2;&lt;br /&gt;
// Better to use let keyword&lt;br /&gt;
let username = user;&lt;br /&gt;
&lt;br /&gt;
// Functions&lt;br /&gt;
function myFunction() {&lt;br /&gt;
    console.log(&amp;quot;Hello World!&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
// Execute this function&lt;br /&gt;
myFunction()&lt;br /&gt;
&lt;br /&gt;
// WebSockets&lt;br /&gt;
let socket = new WebSocket(&amp;quot;server-url&amp;quot;)&lt;br /&gt;
/* Add your custom WebSocket&lt;br /&gt;
functionality here! */&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 View the references for more info.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;!-- Inline citations added to your article will automatically display here. See en.wikipedia.org/wiki/WP:REFB for instructions on how to add citations. --&amp;gt;&lt;br /&gt;
{{reflist}}&lt;br /&gt;
{{⚠️🚨COPIED from EverybodyWiki ❗❕⚠️😡😤Please respect Licence CC-BY-SA ❗}}&lt;br /&gt;
{{Source Wikipedia}}&lt;/div&gt;</summary>
		<author><name>WikiMasterBot2</name></author>
	</entry>
</feed>