Posts

Showing posts with the label JavaScript data types and data structures

JavaScript data types and data structures

Here in this article we are reading about  “J avaScript data types and data structures ” . Programming languages all have built-in data structures, but these often differ from one language to another. This article attempts to list the built-in data structures available in JavaScript and what properties they have; these can be used to build other data structures. Wherever possible, comparisons with other languages are drawn. Dynamic typing JavaScript is a  loosely typed  or a  dynamic  language. Variables in JavaScript are not directly associated with any particular value type, and any variable can be assigned (and re-assigned) values of all types: 1 2 3 <span class="token keyword">var</span> foo <span class="token operator">=</span> <span class="token number">42</span><span class="token punctuation">;</span>    <span class="token comment" spellcheck="true">//...