JavaScript data types and data structures

Posted chucklu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JavaScript data types and data structures相关的知识,希望对你有一定的参考价值。

JavaScript 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:

var foo = 42;    // foo is now a number
foo     = ‘bar‘; // foo is now a string
foo     = true;  // foo is now a boolean

Data types

The latest ECMAScript standard defines eight data types:

 

 

 

 

 

 

 

 

 

以上是关于JavaScript data types and data structures的主要内容,如果未能解决你的问题,请参考以下文章

Data Struct and Data Type

HIT软件构造课程3.1总结(data type and type checking)

Segment Descriptors, Code- and Data-Segment Descriptor Types

翻译苹果官网的命名规范之 Naming Properties and Data Types

[Immutable.js] Converting Immutable.js Structures to Javascript and other Immutable Types

Data Binding Android - Type parameter T has incompatible upper bounds : ViewDataBinding and MainAct(