Andrefer1 / ignite-reactjs-desafio-03-github-blog

Uma aplicação que utilizará da API do GitHub para buscar issues de um repositório, dados do perfil e exibir elas como um blog.
0 stars 0 forks source link

JavaScript data types and data structures #1

Open Andrefer1 opened 6 months ago

Andrefer1 commented 6 months ago

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

let foo = 42;   // foo is now a number
foo = ‘bar’;    // foo is now a string
foo = true;     // foo is now a boolean
Andrefer1 commented 6 months ago

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce vel ex lacinia, condimentum lorem quis, mattis risus. Sed et leo eros. Etiam ex purus, hendrerit vitae lorem a, efficitur efficitur neque. In ut sapien sed ex luctus consectetur eu a nisl. In varius elit vel commodo ultrices. Suspendisse pharetra ultrices metus quis porttitor. Duis vehicula vulputate leo non dapibus.

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