Reading part of Chapter 3 (Functions & Scope), pages 85-99 from JavaScript & jQuery: Interactive Front-End Web Development
-
If we have a function defined as
function sayHello(){console.log("Hello!")}
, what is the difference between enteringsayHello
andsayHello()
in the console?sayHello()
is correct function name. In round brackets parameters of the function is placed. If the function doesn't have any parameter name of the function is typed with round brackets without any signs inside it. -
What is the difference between function parameters and arguments?
Reading Chapter 2 (Statements, Variables, Data Types, & Arrays) from JavaScript & jQuery: Interactive Front-End Web Development
-
How do you declare a variable. What does the equals sign really mean in JavaScript? What is it called in JavaScript?
Variables stores the bits of information a script needs to do its job. The equals sign is assignment operators that asigns a value to the variable.
-
There are three big data types in JavaScript: numbers, strings, and booleans. Describe what each of them are.
-
If you're using an input element in a form, what attribute controls the behavior of that input?
The
<input>
element is used to create several different form controls. The value of the type attribute determines what kind of input they will be creating. -
What element is used to create a dropdown list?
-
There are three main types of lists in HTML: ordered, unordered, and definition. What are their differences?
Ordered lists are lists where each item in the list is numbered.
Unordered lists are lists that begin with a bullet point.
Object: "Becoming" | |
Attributes: | |
Title (Becoming) | |
Author (Michell Obama) | |
Year (2018 | |
Total_number_of_pages(448) | |
Number_of_read_pages (24) | |
Methods: |
Class: Book | |
Attributes: | |
Title (string) | |
Author (string) | |
Year (integer) | |
Total_number_of_pages(integer) | |
Number_of_read_pages (integer) | |
Methods: |