MCQ Answer

Which of the following is/are valid javascript data types?

Which of the following is/are valid javascript data types?

निम्नलिखित में से कौन जावास्क्रिप्ट डेटा प्रकार नहीं है?
Topic : JS Basic Syntax and Data Types

A. Null type शून्य प्रकार

B. Undefined type अपरिभाषित प्रकार

C. Number type संख्या प्रकार

D. All of the mentioned उल्लिखित सभी




Correct Answer is :

D. All of the mentioned



Explanation
In JavaScript, there are several primitive data types and one complex data type. Here are the main data types in JavaScript:

Primitive Data Types:
  • Number: Represents both integer and floating-point numbers. Example: let num = 10;
  • String: Represents a sequence of characters enclosed within single (' ') or double (" ") quotes. Example: let str = 'Hello';
  • Boolean: Represents a logical value indicating true or false. Example: let isTrue = true;
  • Undefined: Represents a variable that has been declared but not assigned a value. Example: let variable;
  • Null: Represents the intentional absence of any value. Example: let value = null;
  • Symbol: Represents a unique identifier, introduced in ES6. Example: let sym = Symbol('description');
  • BigInt: Represents integers of arbitrary precision, introduced in ES10. Example: let bigNum = 1234567890123456789012345678901234567890n;
Complex Data Type:
  • Object: Represents a collection of key-value pairs, where keys are strings (or Symbols) and values can be any data type. 
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz