This operator inverts the value of a boolean expression (true becomes false, false becomes true).
Answer: What is the ! (NOT) operator?
The values of x, y and z after the execution of the three lines of code below: var x = 5, y = 6, z; x = y++; z = ++y;
What is x equals 6 and y equals 7 (after the x = y++ statement), and z equals 8 and y equals 8 (after the z = ++y statement)?
What data type represents a special value that indicates the absence of any object value?
Answer: What is null?
You can chain multiple if statements together to create more complex conditional logic. What keyword is used to introduce subsequent conditions?
Answer: What is else if?
This keyword declares a variable with block-level scope and cannot be re-assigned after initialization. It's ideal for values that should remain constant.
Answer: What is const?
This loop is similar to a while loop, but it executes at least once before checking the condition.
Answer: What is a do...while loop?
ThThis data type indicates that a variable has been declared but not yet assigned a value.
Answer: What is undefined?
What keyword declares a variable with block-level scope and can be re-assigned within its scope?
Answer: What is let?
Number, String, Boolean, Object, Function
What are the 6 fundamental data types?
This data type can hold whole numbers, both positive and negative.
What is a number?
This data type, also introduced in ES6, is used to represent a unique and immutable identifier.
Answer: What is a symbol?
This block of code within an if statement is executed if the condition is false (optional).
Answer: What is the else block?
This statement allows you to exit a loop prematurely if a certain condition is met.
Answer: What is the break statement?
This data type represents a single character enclosed in quotation marks (e.g., 'a' or 'Z').
Answer: What is a string?
What operator combines two boolean expressions and returns true only if both are true?
Answer: What is the && (AND) operator?
What loop iterates a specific number of times based on a counter variable?
Answer: What is a for loop?
This loop keeps executing as long as a certain condition remains true.
Answer: What is a while loop?
This data type allows you to store key-value pairs and is unordered (e.g., { name: "Alice", age: 30 }).
What is is the following? var userVal1 = Number(prompt("enter value 1")); var userVal2 = What is an object?
This operator combines two boolean expressions and returns true if at least one of them is true.
Answer: What is the || (OR) operator?