Computer Science, asked by Sharma8727, 13 days ago

Why does javascript have two categories of data variable

Answers

Answered by vaishnavi94292
0

Answer:

There are two types of data types in JavaScript. JavaScript is a dynamic type language, means you don't need to specify type of the variable because it is dynamically used by JavaScript engine. You need to use var here to specify the data type. It can hold any type of values such as numbers, strings etc.

Data Type: Description

Null: represents null i.e. no value at all

Boolean: represents boolean value either false or true

hope it helped you dear ☺️

Similar questions