What are the different data types in javascript?

Answers were Sorted based on User's Feedback



What are the different data types in javascript?..

Answer / hr@tgksolutions.com

JavaScript has seven primitive types and one non-primitive type:
• Primitive Types: String, Number, Boolean, Undefined, Null, Symbol, BigInt
• Non-Primitive Type: Object (includes Arrays, Functions, and more)

Is This Answer Correct ?    0 Yes 0 No

What are the different data types in javascript?..

Answer / Pravindra Kumar Chaturvedi

In JavaScript, there are several main data types: Number (integer and floating-point numbers), String (text), Boolean (true or false), null (empty value), undefined (a variable that has been declared but not assigned a value), and Object (complex data structures).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How to get total number of elements used in array?

1 Answers  


How can we determine whether a variable is set?

1 Answers  


What type of headers that PHP supports?

1 Answers  


What are the differences between GET and POST methods?

1 Answers  


what mode to use when creating dirs with mkdir?

1 Answers  


What does addslashes do in php?

1 Answers  


What is the difference between $argv and $argc? Give example?

1 Answers  


Is salary fixed or variable cost?

1 Answers  


Is php harder than javascript?

1 Answers  


How to create a public static method in PHP?

1 Answers  


Can we embedded directly PHP code into XHTML document? State Whether True or False?

1 Answers  


How is it possible to parse a configuration file?

1 Answers  


Categories