[go: up one dir, main page]

0% found this document useful (0 votes)
8 views4 pages

Finalsreviewer Itec102

Uploaded by

rafael
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views4 pages

Finalsreviewer Itec102

Uploaded by

rafael
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

ARRAY - It defines as an ordered list of values and forEach () – used to invoke a function for each

array element. ( ina-add items total)


also a container object that holds a fixed number of
values of a single type.
INCLUDES () – used to check whether the given
ARRAY LITERAL - The easiest way to create an element is included in the array or not.
array in JavaScript.

ARRAY DIRECTLY - An array that can be JOIN () - The methods used to combine the array
created using the new keyword, elements into the string and provides a new string.

ARRAY CONSTRUCTOR - An array that can be POP () - The methods that removes the last
element of an array.
created using the new keyword which passing
arguments in a constructor.
PUSH () -The methods used to add elements at the
end of the array.
NEW - A keyword that is used to create instance of
array
REVERSE () – used to reverse the sequence of the
given array of element.
0 (ZERO) - The first element in every array.

Shift () – * Removes the first item in an array.


LENGTH - The ___ of an array is established when
EX. Array [1,2,3] array.shift() = 2,3
the array is created. After creation, it is fixed.
 Returned the shifted element
ELEMENT - Each item in an array is called an ___ EX. Array [1,2,3] ret=array.shift() = 1
that can be accessed by its numerical index.
SLICE () – used to display part of the given array
ARRAY METHODS element w/o changing the original. (start,end)
CONCAT () - The methods that concatenates
(joins) two or more arrays. SORT () – used to display the array element in
ascending order.
EVERY () – the method that checks whether given
elements are true or false.
UNSHIFT () - The methods used to add elements at
FILL () - The methods used to fill the specified the beginning of the array.
static values by modifying original values in the
given array.
indexOf () – used to search the position of aan
FILTER () – use to filter the array element based on element in a given array.
the given condition.
ECMAScipt 2015 (ES6) – introduced the getElementById Method – most common
new keyword CONST way to access an html element.

HTML DOM – Document Object Model – innerHTML Property – easiest way to get
constructed as a tree of Object. It is a world the content of an element. It is useful for
wide web consortium standard, it defines a getting and replacing the content.
standard for accessing documents.
JAVASCRIPT EVENTS – part of DOM
WWW DOM DIFF PARTS: level 3 and every HTML element contain a
 CORE DOM – standard model for all set of events w/c can trigger Jvs code.
document types
 XML DOM – smodel for XML Onclick – most frequently used event type
documents which occurs when a user clicks the left
 HTML DOM – smodel for HTML button of his mouse.
docs.
ONSUBMIT – an event that occurs when
HTML DOM METHODS - actions that you try to submit a form.
you can perform on html elements
ONMOUSEOVER – event trigger when
HTML DOM PROPERTIES – values of you bring your mouse over any element
html elements
ONMOUSEOUT – triggers when you move
PROPERTY – value that you can get or set your mouse out from that element.

METHOD – action that you can do

SIMULATION
Simulate the output of the following JavaScript code snippets.

Please follow this convention for those outputs that have next line.
Example:

for(var x = 1; x<=3; x++){


console.log(x);
}

Output:
1
2
3

You should write your answer 1,2,3


Note: Please observed your spacing.

var x = [1,2,4];
console.log(x);

You should write your answer like the ff:


[1,2,4] or 1,2,4
Note: Please observed your spacing.

Answer: [ 1, 3, 5 ]

Answer: [-8,3,5,8,2,-5,1] or -8,3,5,8,2,-5,1


answer: coding coding, coding, [2,4,5], 3

Answer: [ 0,2,4,6,8,10,12,14,16,18 ]

You might also like