What are the different data types in javascript?
Answers were Sorted based on User's Feedback
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 |
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 |
How to get total number of elements used in array?
How can we determine whether a variable is set?
What type of headers that PHP supports?
What are the differences between GET and POST methods?
what mode to use when creating dirs with mkdir?
What does addslashes do in php?
What is the difference between $argv and $argc? Give example?
Is salary fixed or variable cost?
Is php harder than javascript?
How to create a public static method in PHP?
Can we embedded directly PHP code into XHTML document? State Whether True or False?
How is it possible to parse a configuration file?