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

Published: 07 January 2020
on channel: 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


On this page of the site you can watch the video online JavaScript Tutorial for Beginners - Part 11 | JavaScript Data Types | LearnWebTechnologies with a duration of hours minute second in good quality, which was uploaded by the user Learn Web Technologies 07 January 2020, share the link with friends and acquaintances, this video has already been watched 19 times on youtube and it was liked by 2 viewers. Enjoy your viewing!