<hr>
 
<hr>
   −
The objective of this chapter is to provide an overview of JavaScript variables.
+
The objective of this chapter is to provide an overview of JavaScript variable types.
    
== JavaScript Variables ==
 
== JavaScript Variables ==
 
<td>string<td>"Hello World!"<td>The ''string'' variable type stores a string of characters, typically making up either a word or sentence. ''string'' variables can also be assigned empty strings.
 
<td>string<td>"Hello World!"<td>The ''string'' variable type stores a string of characters, typically making up either a word or sentence. ''string'' variables can also be assigned empty strings.
 
<tr>
 
<tr>
<td>function<td>any built-in or user defined function<td>A ''function'' is one of the basic building blocks of most programming languages including JavaScript. Functions provide a way to organize functionality into clean, reusable modules that can be accessed from any other JavaScript to perform specific tasks. In addition to user created functions, JavaScript contains a number of built-in functions that provide pre-defined functionality. Functions are covered in a [[Understanding JavaScript Functions]].</td>
+
<td>function<td>any built-in or user defined function<td>A ''function'' is one of the basic building blocks of most programming languages including JavaScript. Functions provide a way to organize functionality into clean, reusable modules that can be accessed from any other JavaScript to perform specific tasks. In addition to user created functions, JavaScript contains a number of built-in functions that provide pre-defined functionality. Functions are covered in [[Understanding JavaScript Functions]].</td>
 
<tr>
 
<tr>
 
<td>object<td>document, window<td>JavaScript provides a set of predefined objects to which the JavaScript programmer has access. For example the ''document'' object refers to the current web page and can be accessed to make changes to the page content.
 
<td>object<td>document, window<td>JavaScript provides a set of predefined objects to which the JavaScript programmer has access. For example the ''document'' object refers to the current web page and can be accessed to make changes to the page content.
 
</pre>
 
</pre>
   Exception encountered, of type "Error"
[1be2eef4] /index.php?title=JavaScript_Variable_Types&diff=7276&oldid=6948 Error from line 434 of /var/www/techotopia/includes/diff/DairikiDiff.php: Call to undefined function each()
Backtrace:
#0 /var/www/techotopia/includes/diff/DairikiDiff.php(544): DiffEngine->diag()
#1 /var/www/techotopia/includes/diff/DairikiDiff.php(344): DiffEngine->compareSeq()
#2 /var/www/techotopia/includes/diff/DairikiDiff.php(227): DiffEngine->diffLocal()
#3 /var/www/techotopia/includes/diff/DairikiDiff.php(721): DiffEngine->diff()
#4 /var/www/techotopia/includes/diff/DairikiDiff.php(859): Diff->__construct()
#5 /var/www/techotopia/includes/diff/DairikiDiff.php(980): MappedDiff->__construct()
#6 /var/www/techotopia/includes/diff/TableDiffFormatter.php(194): WordLevelDiff->__construct()
#7 /var/www/techotopia/includes/diff/DiffFormatter.php(140): TableDiffFormatter->changed()
#8 /var/www/techotopia/includes/diff/DiffFormatter.php(82): DiffFormatter->block()
#9 /var/www/techotopia/includes/diff/DifferenceEngine.php(881): DiffFormatter->format()
#10 /var/www/techotopia/includes/diff/DifferenceEngine.php(797): DifferenceEngine->generateTextDiffBody()
#11 /var/www/techotopia/includes/diff/DifferenceEngine.php(728): DifferenceEngine->generateContentDiffBody()
#12 /var/www/techotopia/includes/diff/DifferenceEngine.php(662): DifferenceEngine->getDiffBody()
#13 /var/www/techotopia/includes/diff/DifferenceEngine.php(632): DifferenceEngine->getDiff()
#14 /var/www/techotopia/includes/diff/DifferenceEngine.php(453): DifferenceEngine->showDiff()
#15 /var/www/techotopia/includes/page/Article.php(797): DifferenceEngine->showDiffPage()
#16 /var/www/techotopia/includes/page/Article.php(508): Article->showDiffPage()
#17 /var/www/techotopia/includes/actions/ViewAction.php(44): Article->view()
#18 /var/www/techotopia/includes/MediaWiki.php(490): ViewAction->show()
#19 /var/www/techotopia/includes/MediaWiki.php(287): MediaWiki->performAction()
#20 /var/www/techotopia/includes/MediaWiki.php(714): MediaWiki->performRequest()
#21 /var/www/techotopia/includes/MediaWiki.php(508): MediaWiki->main()
#22 /var/www/techotopia/index.php(41): MediaWiki->run()
#23 {main}