What is a JavaScrip…
 
Notifications
Clear all

What is a JavaScript element that represents either TRUE or FALSE values?

2 Posts
3 Users
0 Likes
296 Views
0
Topic starter

What is a JavaScript element that represents either TRUE or FALSE values?

2 Answers
0

In JavaScript, the element that represents either TRUE or FALSE values is called a Boolean. A Boolean variable can hold one of two values: true or false. Booleans are commonly used in programming for logical operations, conditional statements, and decision-making. They help determine the flow of a program based on specific conditions or criteria.

0

 

boolean
 
A boolean is a primitive value that represents either true or false
Share: