3.
Which of the following data types in JavaScript can have a value of either true or false?
Boolean
String
Number
Array
Correct: A
The boolean data type in JavaScript represents a logical value that can be true or false. Boolean values are commonly used in conditional statements to determine the flow of a program based on certain conditions.