JavaScript Flashcards
Function
Named set of of statements that can perform a specific task repeatedly throughout program
Argument
Value or expression containing data or code that is passed on to a function of procedure
Method
An action that an object can perform (what it performs with properties)
Chrome supports
MP3, Ogg and WAV
Internet Explorer supports
MP3
Safari supports
MP3 and WAV
Firefox supports
Ogg and WAV
BODY {color: #008060; }
Selector
body {COLOR: #008060; }
Property
008060
Value
Style guide
Set of standards for the writing and/or design of documents
CSS position default
STATIC
Box Model contains
Content
Padding
Border
Margin
Class selector always
Starts with a PERIOD.
body {color: #008060; }
This is a CSS rule
CSS comment
/* comment */
Fixed positioning
Element remains in same position when PAGE SCROLLS
Absolute positioning
Floats above documents and can be positioned as needed
Customize your own HTML element styles with
Class and Id selectors
CSS1 introduced
Margins
CSS3 brought
Transformations, Transitions, and Animations
Cover value
Scales background image to larges size while MAINTAINING ASPECT RATIO
Contain value
Scales largest size they ALLOWS WIDTH AND HEIGHT but doesn’t fit the entire area
Specify shadow’s size but is optional
Spread
V-shadow is
Required
Select element that begins with
Select element that ends with
$
Select elements that contains
*
-webkit-
Chrome and Safari
-moz-
Firefox
-ms-
Internet explorer
-o-
Opera
Positive Z index
Places element in front of other elements
Negative Z index
Places elements behind others
Transition delay
When transition will begin
Default for transition delay and duration
Zero
Box-sizing property
Content box and border box
Outline offset property
Draws outline beyond border edge
User interface elements =
Menus and buttons
Microsofts implementafion of JavaScript
JScript
Word and Excel use
VBScript
Expressions rely on
OPERATORS to produce a value
Used as needed
VARIABLE
Expression
Part of statement evaluated as value
document.write() method
Write specified message string I page, dynamically written to the Window as script is executed as it loads
JavaScript and Java are
UNRELATED
Event is
User initiated action
Events trigger
Functions
Methods…
PERFORM - action made to perform
Properties are _____ of an object
Attributes
Why is it important to test JavaScript code in as many browsers as possible?
Different browsers sometimes implement JavaScript differently
JavaScript is ___ driven
Event
Considered easy to learn bc
Basic syntax is simple and many examples