<?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-10-29T16:50:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.5</generator>
	<entry>
		<id>https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525149&amp;oldid=prev</id>
		<title>WikiMasterBot2: automatic correction by IA</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525149&amp;oldid=prev"/>
		<updated>2026-08-27T14:35:35Z</updated>

		<summary type="html">&lt;p&gt;automatic correction by IA&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 14:35, 27 August 2026&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a value &lt;/del&gt;in a named space. Variables can be used as &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/del&gt;mathematical &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;constant&lt;/del&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; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;to use &lt;/del&gt;in math commands to generate &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/del&gt;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; 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 &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; 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 are 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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;identify as &lt;/del&gt;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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;values &lt;/ins&gt;in a named space. Variables can be used as mathematical &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;constants&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; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;used &lt;/ins&gt;in math commands to generate 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; 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 &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; 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 are 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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be &lt;/ins&gt;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;/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 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;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 keywords used in [[object-oriented programming]]. These are used to run code multiple times, for example, a login button. They can set up the procedure and insert it inside &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;of &lt;/del&gt;a function named &#039;&#039;loginProcedure&#039;&#039;. Using the [[Document Object Model]], they can have the function execute when an [[HTML element]] is clicked.&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;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 keywords used in [[object-oriented programming]]. These are used to run code multiple times, for example, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;for &lt;/ins&gt;a login button. They can set up the procedure and insert it inside a function named &#039;&#039;loginProcedure&#039;&#039;. Using the [[Document Object Model]], they can have the function execute when an [[HTML element]] is clicked.&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;=== 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]] are triggers usually initiated by user input,&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;allows &lt;/del&gt;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]] are triggers usually initiated by user input,&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;allow &lt;/ins&gt;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; 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 &quot;new WebSocket()&quot;. Inside &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;of &lt;/del&gt;the parentheses put the [[URL|URL (Uniform Resource Locator)]] of your WebSocket connection. Create custom functions &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;for this &lt;/del&gt;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,&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 &quot;new WebSocket()&quot;. Inside the parentheses put the [[URL|URL (Uniform Resource Locator)]] of your WebSocket connection. Create custom functions 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;!-- diff cache key everybodywiki-en_:diff:1.41:old-6525147:rev-6525149:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiMasterBot2</name></author>
	</entry>
	<entry>
		<id>https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525147&amp;oldid=prev</id>
		<title>WikiMasterBot2: automatic correction by IA</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525147&amp;oldid=prev"/>
		<updated>2026-08-27T14:35:17Z</updated>

		<summary type="html">&lt;p&gt;automatic correction by IA&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 14:35, 27 August 2026&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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&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;used &lt;/del&gt;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; 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 &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; 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 are 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;/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,&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;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;to use &lt;/ins&gt;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; 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 &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; 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 are 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;/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;/table&gt;</summary>
		<author><name>WikiMasterBot2</name></author>
	</entry>
	<entry>
		<id>https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525146&amp;oldid=prev</id>
		<title>WikiMasterBot2: automatic correction by IA</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525146&amp;oldid=prev"/>
		<updated>2026-08-27T14:35:12Z</updated>

		<summary type="html">&lt;p&gt;automatic correction by IA&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 14:35, 27 August 2026&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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&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;to use &lt;/del&gt;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; 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 &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; 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 are 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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be &lt;/del&gt;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,&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;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;used &lt;/ins&gt;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; 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 &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; 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 are 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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;identify as &lt;/ins&gt;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;/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-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&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]] are triggers usually initiated by user input,&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;allow &lt;/del&gt;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]] are triggers usually initiated by user input,&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;allows &lt;/ins&gt;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;/table&gt;</summary>
		<author><name>WikiMasterBot2</name></author>
	</entry>
	<entry>
		<id>https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525141&amp;oldid=prev</id>
		<title>WikiMasterBot2: automatic correction by IA</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525141&amp;oldid=prev"/>
		<updated>2026-08-27T14:33:41Z</updated>

		<summary type="html">&lt;p&gt;automatic correction by IA&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 14:33, 27 August 2026&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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&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=&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,&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;,&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is &lt;/del&gt;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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;identify as &lt;/del&gt;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,&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=&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,&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;,&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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;are &lt;/ins&gt;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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be &lt;/ins&gt;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;/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;/table&gt;</summary>
		<author><name>WikiMasterBot2</name></author>
	</entry>
	<entry>
		<id>https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525139&amp;oldid=prev</id>
		<title>WikiMasterBot2: automatic correction by IA</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525139&amp;oldid=prev"/>
		<updated>2026-08-27T14:33:21Z</updated>

		<summary type="html">&lt;p&gt;automatic correction by IA&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 14:33, 27 August 2026&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;values &lt;/del&gt;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=&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,&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;,&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be &lt;/del&gt;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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a value &lt;/ins&gt;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=&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,&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;,&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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;identify as &lt;/ins&gt;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;/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-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&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]] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is a trigger &lt;/del&gt;usually initiated by user input,&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;allows &lt;/del&gt;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]] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;are triggers &lt;/ins&gt;usually initiated by user input,&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;allow &lt;/ins&gt;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; 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&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;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 &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,&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 &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=6525134&amp;oldid=prev</id>
		<title>WikiMasterBot2: automatic correction by IA</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525134&amp;oldid=prev"/>
		<updated>2026-08-27T14:32:39Z</updated>

		<summary type="html">&lt;p&gt;automatic correction by IA&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 14:32, 27 August 2026&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a value &lt;/del&gt;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=&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,&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;,&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;identify as &lt;/del&gt;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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;values &lt;/ins&gt;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=&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,&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;,&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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be &lt;/ins&gt;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;/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-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&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]] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;are triggers &lt;/del&gt;usually initiated by user input,&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;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]] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is a trigger &lt;/ins&gt;usually initiated by user input,&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; 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 &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,&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&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;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 &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=6525133&amp;oldid=prev</id>
		<title>WikiMasterBot2: automatic correction by IA</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525133&amp;oldid=prev"/>
		<updated>2026-08-27T14:32:31Z</updated>

		<summary type="html">&lt;p&gt;automatic correction by IA&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 14:32, 27 August 2026&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;values &lt;/del&gt;in a named space. Variables can be used as mathematical &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;constants&lt;/del&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 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; 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 &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; 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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be &lt;/del&gt;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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a value &lt;/ins&gt;in a named space. Variables can be used as &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/ins&gt;mathematical &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;constant&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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/ins&gt;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; 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 &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; 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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;identify as &lt;/ins&gt;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;/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-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&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]] are triggers usually initiated by user input,&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;allow &lt;/del&gt;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]] are triggers usually initiated by user input,&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;allows &lt;/ins&gt;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; 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 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 &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,&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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/ins&gt;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 &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=6525132&amp;oldid=prev</id>
		<title>WikiMasterBot2: automatic correction by IA</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525132&amp;oldid=prev"/>
		<updated>2026-08-27T14:32:24Z</updated>

		<summary type="html">&lt;p&gt;automatic correction by IA&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 14:32, 27 August 2026&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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&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 values in named &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;spaces&lt;/del&gt;. Variables can be used as mathematical constants,&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be used &lt;/del&gt;in math commands to generate &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/del&gt;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; 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 &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; 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 be 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 values in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/ins&gt;named &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;space&lt;/ins&gt;. Variables can be used as mathematical constants,&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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;use &lt;/ins&gt;in math commands to generate 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; 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 &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; 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 be 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;/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-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&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; 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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/del&gt;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 &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,&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 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 &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=6525130&amp;oldid=prev</id>
		<title>WikiMasterBot2: automatic correction by IA</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525130&amp;oldid=prev"/>
		<updated>2026-08-27T14:32:20Z</updated>

		<summary type="html">&lt;p&gt;automatic correction by IA&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 14:32, 27 August 2026&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a value &lt;/del&gt;in &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/del&gt;named &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;space&lt;/del&gt;. Variables can be used as &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/del&gt;mathematical &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;constant&lt;/del&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;use &lt;/del&gt;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; 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 &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; 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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;identify as &lt;/del&gt;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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;values &lt;/ins&gt;in named &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;spaces&lt;/ins&gt;. Variables can be used as mathematical &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;constants&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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be used &lt;/ins&gt;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; 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 &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; 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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be &lt;/ins&gt;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;/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-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&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]] are triggers usually initiated by user input,&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;allows &lt;/del&gt;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]] are triggers usually initiated by user input,&amp;lt;ref name=&quot;:0&quot; /&amp;gt; which &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;allow &lt;/ins&gt;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;/table&gt;</summary>
		<author><name>WikiMasterBot2</name></author>
	</entry>
	<entry>
		<id>https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525128&amp;oldid=prev</id>
		<title>WikiMasterBot2: automatic correction by IA</title>
		<link rel="alternate" type="text/html" href="https://en.everybodywiki.com/index.php?title=JavaScript_Basics&amp;diff=6525128&amp;oldid=prev"/>
		<updated>2026-08-27T14:31:55Z</updated>

		<summary type="html">&lt;p&gt;automatic correction by IA&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 14:31, 27 August 2026&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;values &lt;/del&gt;in a named space. Variables can be used as mathematical &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;constants&lt;/del&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,&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,&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;,&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 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be &lt;/del&gt;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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a value &lt;/ins&gt;in a named space. Variables can be used as &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/ins&gt;mathematical &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;constant&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,&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,&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;,&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 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;identify as &lt;/ins&gt;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;/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;/table&gt;</summary>
		<author><name>WikiMasterBot2</name></author>
	</entry>
</feed>