Instructions

  • 1. Your final score will reflect your grasp of the concepts—approach each question with precision.
  • 2. Thoroughly review each solution before proceeding to ensure full understanding.
  • 3. Final results will be available after submission to provide insights into areas for further improvement.
  • 4. Maintain academic integrity—plagiarism undermines learning and professional growth.
  • 5. Once submitted, responses are final, so ensure you’re confident in your answers.
  • 6. These challenges are designed to test practical knowledge; apply your skills as you would in real-world scenarios.

All Problems

Question

Action

What is the data type of true in JavaScript?

View

Which of the following is a string in JavaScript?

View

How would you declare an array in JavaScript?

View

Which of the following is the correct type for an object in JavaScript?

View

How do you check the data type of a variable in JavaScript?

View

What is the result of typeof null in JavaScript?

View

Which of the following is an example of a number in JavaScript?

View

Which of the following is NOT a primitive data type in JavaScript?

View

What is the output of typeof undefined?

View

How would you declare a variable that cannot be reassigned in JavaScript?

View

What is the data type of true in JavaScript?

Number
String
Boolean
Object

Which of the following is a string in JavaScript?

'Hello'
5
true
null

How would you declare an array in JavaScript?

let arr = (1, 2, 3);
let arr = {1, 2, 3};
let arr = [1, 2, 3];
let arr = <1, 2, 3>;

Which of the following is the correct type for an object in JavaScript?

{ name: 'John', age: 30 }
[name, age]
['John', 30]
{ name: John, age: 30 }

How do you check the data type of a variable in JavaScript?

typeof variable
typeOf variable
type variable
checkType variable

What is the result of typeof null in JavaScript?

null
undefined
object
string

Which of the following is an example of a number in JavaScript?

10
'10'
false
undefined

Which of the following is NOT a primitive data type in JavaScript?

Number
Boolean
Array
String

What is the output of typeof undefined?

undefined
null
object
string

How would you declare a variable that cannot be reassigned in JavaScript?

let x = 5;
var x = 5;
const x = 5;
const x;