I’ll also teach you about all the cool stuff that you can do with booleans! The if statement is the fundamental control statement that allows JavaScript to make decisions and execute statements conditionally. The if statement is the fundamental control statement that allows JavaScript to make decisions and execute statements conditionally. If statements are another core part of JavaScript: they let you control what code is actually executed, based on comparing values and/or variables. php executed before javascript so you can't do this because when you check it via javascript if else statement php is already executed so you can't do it but however you can use ajax for it . If the resulting value is true, the given statement (s) are executed. The following table only serves to communicate that such concepts exist. JavaScript is a single thread language which means it’s executed line by line. Answer: A Explanation: The strict comparison operator returns true only if the operand are of the same type and content matches. The second if statement’s condition is not satisfied, but its built on else statement’s condition is satisfied. what is the purpose of statement blocks? In a programming language, these programming instructions are called statements. JavaScript ignores multiple spaces. it is after an operator: JavaScript statements can be grouped together in code blocks, inside curly a group of statements grouped by curly brackets.