Web Dev Quiz I Study Session Pt 2

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions
Get a hint
Hint

Web address Protocol

1 / 17

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

18 Terms

1

Web address Protocol

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

New cards
2

top-level domain (TLD)

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

New cards
3

'<' operator

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

New cards
4

'<='

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

New cards
5

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

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

New cards
6

!=

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

New cards
7

let score = 0;

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

New cards
8

const euler = 2.72;

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

New cards
9

variables declared with const cannot be modified.

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

New cards
10

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

What is the purpose of variable's in JavaScript?

New cards
11

if (condition) { // code to execute }

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

New cards
12

'if' statement

executes code based on whether a condition evaluates to true.

New cards
13

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?

New cards
14

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?

New cards
15

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?

New cards
16

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?

New cards
17

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?

New cards
18

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

How is an 'if-else' statement structured?

New cards

Explore top notes

note Note
studied byStudied by 38 people
83 days ago
5.0(1)
note Note
studied byStudied by 26 people
196 days ago
5.0(1)
note Note
studied byStudied by 802 people
648 days ago
5.0(2)
note Note
studied byStudied by 24 people
651 days ago
5.0(1)
note Note
studied byStudied by 170 people
840 days ago
5.0(3)
note Note
studied byStudied by 15 people
660 days ago
4.0(1)
note Note
studied byStudied by 7 people
833 days ago
5.0(1)
note Note
studied byStudied by 4701 people
1321 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (48)
studied byStudied by 5 people
371 days ago
5.0(1)
flashcards Flashcard (64)
studied byStudied by 15 people
657 days ago
4.0(1)
flashcards Flashcard (31)
studied byStudied by 12 people
311 days ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 19 people
443 days ago
5.0(1)
flashcards Flashcard (87)
studied byStudied by 17 people
763 days ago
5.0(2)
flashcards Flashcard (94)
studied byStudied by 35 people
515 days ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 222 people
357 days ago
4.7(3)
flashcards Flashcard (62)
studied byStudied by 20 people
157 days ago
5.0(1)
robot