Types of Data Types in JavaScript - JavaScript Tutorial 15

preview_player
Показать описание
Notes for You:: Types of Data Types in JavaScript - JavaScript Tutorial 15
- JavaScript Data types can be divided into three types:

I. Primitive Data Types: number, string, Boolean
II. Special Data Types: undefined, null
II. Composite Data Types: all objects

I. Primitive Data Types: Value Types

1. number:
- indicates both integer and real numbers

A. Integers:
- means whole numbers
Ex: 122, 2000, -400, etc

B. Real numbers:
- means float numbers, i.e. numbers containing floating point
Ex: 3.142, 9.8,-48.32, etc.

2. string: Textual data.
- indicates sequence of characters enclosed in double quotations or single quotations
Ex: "Hello World", 'Hello JavaScript', etc.

3. boolean:
- indicates logical or conditional result
- Boolean data type has two values true and false value.

II. Special Data Types: Default Values

1. undefined: indicates un-initialized.
- It is the default value of un-initialized variable.
- If we store undefined value in a variable its type will be set to undefined.

2. null: indicates the nothing.
- If we store null in a variable its type is set to object.
- Object type is also known as reference or pointer type,
- A variable of type object points or refers to another memory location; if it should not point to any memory location then assign a value null.

III. Composite Data Types: Reference types or Object types
- Instead of holding value they hold the address of another memory location.
Ex: Arrays, functions, RegExp, Date etc. are all example for Object types

=========================================

Follow the link for next video:
JavaScript Tutorial 16 - Type Casting in JavaScript | JavaScript Type Conversions

Follow the link for next video:
JavaScript Tutorial 14 - Data Types in JavaScript | typeof Operator in JavaScript

=========================================

JavaScript Tutorials Playlist:-

=========================================
Watch My Other Useful Tutorials:-

jQuery Tutorials Playlist:-

jQuery UI Tutorials Playlist:-

Bootstrap Tutorials Playlist:-

=========================================

► Subscribe to our YouTube channel:

► Visit our Website:

=========================================
Hash Tags:-
#ChidresTechTutorials #JavaScript #JavaScriptTutorial
Рекомендации по теме
Комментарии
Автор

SUBSCRIBE, SHARE & SUPPORT:
VISIT & LEARN AT FREE OF COST:

ChidresTechTutorials
Автор

This channel need to share bcoz the content are so good and thanks for creating the chennel vdos make everything easy and understandable...😁😁good luck to the creator 🤗

pallabee
Автор

Nice explanation it is easy to understand ....

-divya.k
Автор

this is 3rd time i am watching your video.

rumanaruma
Автор

Very suitable for students from sub continent.

riaznapa