Miscellaneous Flashcards
parseInt()
Takes a value and tries to convert it to an integer
isNaN()
Returns true if something is not a number
setTimeout()
Specify that am action should occur on a particular schedule
Math.floor
Rounds a number down
Math.random
Generates a random number between 0 and 1
getElementsByTagName()
Provides a collection of all child elements with the specified tag name
getElementById()
Selects an individual element within a document using a specific ID
getElementsByClassName()
Allows you to select all elements with a given class attribute
element.innerHTML
Returns all the HTML between the opening and closing tags
element.nodeType
Property, returns the number of the node type
element.childNodes
A node list of child nodes that are indexed numerically, and appear in source order
element.childNodes.length
Returns the number of child nodes of the element