Looks like no one added any tags here yet for you.
Web address Protocol
(e.g., HTTP or HTTPS) specifies how data is transferred between the browser and the server. HTTPS ensures secure communication.
top-level domain (TLD)
the last part of a domain name, such as .com, .org, or .gov.
'<' operator
It checks if the value on the left is less than the value on the right.
'<='
What does theIt checks if the value on the left is less than or equal to the value on the right.
What does the '===' operator do in JavaScript?
It checks for strict equality, meaning both the value and type must be the same.
!=
It checks if two values are not equal, with type conversion if necessary.
let score = 0;
How would you declare a variable to track a score in JavaScript?
const euler = 2.72;
How would you declare a variable to track a Euler's Number (2.72)?
variables declared with const cannot be modified.
What is the difference between 'const' and 'let' in JavaScript?
variables keep track of information and allow it to be updated.
What is the purpose of variable's in JavaScript?
if (condition) { // code to execute }
What is the syntax for a simple 'if' statement?
'if' statement
executes code based on whether a condition evaluates to true.
Using assignment (=) will assign a value to the variable instead of comparing it, which can lead to unexpected behavior.
What happens if you use an assignment (=) instead of a comparison (==) in an if statement?
Yes, but it's not useful; the if statement would do nothing when the condition is true.
Can an if statement exist without any code inside the curly braces?
allows one block of code to execute if the condition is true and another block if the condition is false.
What is the purpose of an 'if-else' statement?
Yes, you can chain multiple else-if conditions to test several conditions in sequence.
Can you have multiple else-if conditions in an if-else chain?
If none of the conditions are true, the code in the else block (if present) will execute.
What happens if none of the if or else-if conditions are true?
if (condition) { // code if true } else { // code if false }
How is an 'if-else' statement structured?