JavaScript Tutorial for Beginners - Part 11 | JavaScript Data Types | LearnWebTechnologies

Pubblicato il: 07 gennaio 2020
sul canale di: Learn Web Technologies
19
2

CSS Playlist
   • CSS Tutorial for Beginners  

HTML Playlist
   • Html tutorial for beginners  

Sign up for my newsletter to receive weekly updates
http://bit.ly/2RRFktj

Join our facebook page
bit.ly/2OKQYV7

JavaScript Data Types
JavaScript variables can hold many data types: numbers, strings, objects and more:

The Concept of Data Types
In programming, data types is an important concept.

To be able to operate on variables, it is important to know something about the type.
When adding a number and a string, JavaScript will treat the number as a string.
JavaScript evaluates expressions from left to right. Different sequences can produce different results:

JavaScript Types are Dynamic
JavaScript has dynamic types. This means that the same variable can be used to hold different data types:

JavaScript Strings
A string (or a text string) is a series of characters like "John Doe".
Strings are written with quotes. You can use single or double quotes:

JavaScript Numbers
JavaScript has only one type of numbers.
Numbers can be written with, or without decimals:

JavaScript Booleans
Booleans can only have two values: true or false.

JavaScript Arrays
JavaScript arrays are written with square brackets.
Array items are separated by commas.

JavaScript Objects
JavaScript objects are written with curly braces {}.
Object properties are written as name:value pairs, separated by commas.

----------------------------------------------------------------------------------------------------------------
#LearnWebTechnologies #Javascript #JavascriptTutorialForBeginners #JavascriptPlaylist


In questa pagina del sito puoi guardare il video online JavaScript Tutorial for Beginners - Part 11 | JavaScript Data Types | LearnWebTechnologies della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Learn Web Technologies 07 gennaio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 19 volte e gli è piaciuto 2 spettatori. Buona visione!