What are JavaScript types?

Answer Posted / yvar

"Types" in programming languages refer to the type of value
a language recognizes.
Javascript recognizes 5 types:

Numbers (1, 2, 3, 59.45 etc.)
Booleans (true,false)
Strings ("Hello")
null (no value)
undefined (type of value is not defined)

Is This Answer Correct ?    52 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to validate a form in javascript?

484


How javascript variables work?

459


Mention what is the disadvantage of using innerhtml in javascript?

605


How to getting values from cookies to set widgets?

472


How many types of functions JavaScript supports?

509






How do you round a value in javascript?

459


How do you submit a form using JavaScript?

500


What is the meaning of callback function?

494


How would you check if a variable is null/undefined?

558


Why is javascript hoisting?

453


What is external javascript?

527


How use javascript html?

473


What is javascript ‘strict mode’?

488


What is eager initialization in java?

504


What is a method in javascript?

507