Lesson 1: Introduction to JavaScript Flashcards

1
Q

What can’t JavaScript do?

A

Directly access files on the server or client machine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

JavaScript is use to..?

A

Add features and enhance user experience.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are some uses of JavaScript on a webpage?

A
  • Handling user interactions
  • Producing complex animations and web games
  • Supporting server-side functions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are two commonly used web design strategies?

A

Graceful Degradation and Progressive Enhancement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Graceful Degradation?

A

Building a website that works best in modern browsers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Progressive Enhancement?

A

Building a website from the ground up with base level functionality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Each object has certain properties and methods. How do you access them using the Dot Notation?

A

window. document.write(“Welcome to the page!”);

window. alert(“Hello there!”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Write an HTML or a text string in place:

A

document.write(“string”) - String may include HTML tags.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Show a pop up message:

A

alert(“text message”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Prompt for user input:

A

let input = prompt (“message”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Where does JavaScript get put on a webpage?

A

At the end above the body tag.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Write a JavaScript link:

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a Document Object Model (DOM)?

A

A way of visualizing a document and its contents.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly