Javascript

Topic: JS Data Types

What is the JavaScript Data Types?

JavaScript variables can also hold other types of data, like text values (name="John Doe").

In JavaScript a text like "John Doe" is called a string. There are many types of JavaScript variables, but for now, just think of numbers and strings.When you assign a text value to a variable, put double or single quotes around the value.

When you assign a numeric value to a variable, do not put quotes around the value. If you put quotes around a numeric value, it will be treated as text.

Browse random answers: