2.5
2
1
5
++
--
&&
**
Checks the type of a variable or expression
Converts data to a specific type
Creates a new variable type
Compares data types
true
false
yes
ok
open()
window.open()
window.new()
open.window()
alert()
confirm()
prompt()
console.log()
document.getElementById()
document.getElementByClass()
document.querySelector()
document.getElementByName()
element.value
element.innerHTML
element.setHTML()
element.innerContent
element.css.style = "value";
element.style.property = "value";
element.setStyle("property", "value");
element.changeStyle.property = "value";
then
else
elif
otherwise
condition ? True statement : false statement
condition : true statement ? False statement
condition ? (true statement : false statement)
condition then true statement else false statement
The program throws an error
The default case is executed (if defined
Contrast
None of the above
for (initialization, condition, increment/decrement)
for {initialization; condition; increment/decrement}
for (initialization; condition; increment/decrement)
for loop (initialization; condition; increment/decrement)
Initialization
Condition
Increment/Decrement
Body of the loop
The loop runs infinitely
The loop does not execute
The loop throws an error
The loop executes once
Increments a value by 2
Increments a value by 1
Decrements a value by 1
Multiplies a value by 2
++i increments the value after usage, while i++ increments it before
++i increments the value before usage, while i++ increments it after
Both are the same
i++ is a syntax error.
i++
--i
Both a) and b)
* (Multiplication)
() (Parentheses)
++ (Increment)
= (Assignment)
6
7
Error in Code