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.
Javascript
Topic: JS Data Types
What is the JavaScript Data Types?
Browse random answers:
What is the JavaScript Data Types?
What are JavaScript types?
JavaScript Has Dynamic Types
what is a JavaScript Strings?
What is a JavaScript Numbers?
What is undefined value means in JavaScript?
What is the data type of variables in JavaScript?
Difference between undefined and undeclared variables.
What data type javascript supports?
What is the difference between undefined value and null value ?