Web Dev Quiz I Study Session Pt 2

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

Web address Protocol

(e.g., HTTP or HTTPS) specifies how data is transferred between the browser and the server. HTTPS ensures secure communication.

2
New cards

top-level domain (TLD)

the last part of a domain name, such as .com, .org, or .gov.

3
New cards

'<' operator

It checks if the value on the left is less than the value on the right.

4
New cards

'<='

What does theIt checks if the value on the left is less than or equal to the value on the right.

5
New cards

What does the '===' operator do in JavaScript?

It checks for strict equality, meaning both the value and type must be the same.

6
New cards

!=

It checks if two values are not equal, with type conversion if necessary.

7
New cards

let score = 0;

How would you declare a variable to track a score in JavaScript?

8
New cards

const euler = 2.72;

How would you declare a variable to track a Euler's Number (2.72)?

9
New cards

variables declared with const cannot be modified.

What is the difference between 'const' and 'let' in JavaScript?

10
New cards

variables keep track of information and allow it to be updated.

What is the purpose of variable's in JavaScript?

11
New cards

if (condition) { // code to execute }

What is the syntax for a simple 'if' statement?

12
New cards

'if' statement

executes code based on whether a condition evaluates to true.

13
New cards

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?

14
New cards

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?

15
New cards

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?

16
New cards

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?

17
New cards

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?

18
New cards

if (condition) { // code if true } else { // code if false }

How is an 'if-else' statement structured?