shamsmosowi / git-bot

0 stars 0 forks source link

What are the data types supported by JavaScript? #23

Open bofeiw opened 1 year ago

shamsmosowi commented 1 year ago

Hi,

JavaScript supports several data types, including strings, numbers, booleans, and objects. It also supports the special data type null, which is used to indicate that a variable has no value.

String values are enclosed in single or double quotes, e.g. "Hello World". Numbers are simply written without quotes, e.g. 12. Boolean values are either true or false. Objects are collections of data and functions which can be used to store and manipulate data.

I hope this helps!