JavaScript (Duckett) chap 1 Flashcards

1
Q

Flowcharts

A

Flowcharts help us organize and transfer unto paper a visual representation of how our program works.

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

What is sytntax? What is a task?

A

Every language has ots own vocabulary (words used to communicate with computers) and syntax (how those words are put together).

Task is just a programmer word for a job your code aims to accomplish. In a flowchart you jot down different tasks/chores your code can and does accomplish, the arrows linking the tasks would show how one task moves on to another or leads to a decision query.

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

What is a script

A

Series of instructions a computer uses to help you, organization, end-user solve a problem.

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

Html,css,Js are all …

A

Text fileswith each having its own unique syntax & extensions. Each language serves as a layer working together to create a webpage. Content, presentation, behavior layers.

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

How do you link your JavaScript files to your html file and css file.

A

Your Js file is linked primarily to your html file by usong the tag and src element.

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

Objects and their characteristics.

A

Objects are ‘physical things’. Every object has a property, or a characteristic, just like every thing has a property. Properties tend to be name & value. Your sneakers are grey asics, so there you have a name and a property. An object with a name pool with our desired value whether it existed or not, boolean answer for our apt. being true.

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

Instance

A

An instance is an occurence of a thing or an object in the code you’re dealing with. You have one instance of a iPhone and you have 20+ instances of words in this definition.

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

Events

A

An event is a happening. The computer says hey this just happened. Objects through the use of users can help initiate happenings or events. Events can even happen when users simply scroll down a screen, something happened, lets throw an event! Browsers have many events you’ll need to learn so you can use them to help trigger code that correpond with those events.

Events happen we CALL a method.

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

Methods

A

Methods are subsets of code that accomplish a task. Methods do stuff. You often don’t need to know how a method works but might need to know howcto use it , meaning how to make it answer a question and accomplish a task based on that question. You can create methods and many objects in Js have built-in methods you’ll need to learn and use.

changeSpeed( ) is an example of method you might create in a web app that helps change speed if an accelerator is pushed.

Methods are CALLEd

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

Everything in Programming is an object. A browser has a document and window object. Explain what an object such ad these have?

A

Every thing has at least properties, but can have methods and events. Essentially to be a good programmer you’ll need to learn how to create methods and utilize events. There are many events you’ll need to be aware of and many built-in methods you don’t want to have to recreate. Know these 3 parts of an object and you’ll go far kid.

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

You call … and trigger … with …

A

You call methods after triggering code with an event.

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

Progressive engancement in the building of a website is …

A

when you go from using just html to build your website, then include css, and finally the last behavior layer: JavaScript.

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

In the larger view of things every individual web page is a … created with a … or … .

A

webpages are separate documents.

Your about page, your contact page, your index page, all are just instances pf your websites document text objects. These separate web documents are given life by the browsers Js scripting rendering engine or interpreter and the browsers DOM (document object model).

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

Yes JavaScript is the behavior layer but it’s main job is to increase the … of your pages just like the graphical window and document objects are used by the browser to improve ease of use for the user.

A

Interactivity. Ability to respond to users dynamically, and not just in a static content or presentation way, a behavior way. Your page behaves and interacts.

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

What would you use to write elements to your page?

A

document.write( ) method is used to write things to your page.

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

Tell me about the element.

A

We use the element to input JavaScript into our html code, hence into our webpage. The beowser reads every line of code one-by-one and when it reads the

 element it stops and reads whatever is in it. So when this happens essentially when the browser loads our html page it will load our header first, then our first paragraphs and once it reaches our 'behavior' layer via the 
 tag the browser will stop everything it's doing and implement all the behavior properties bestowed upon ot by Js.