Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

Web DSS Exam 2 again

JavaScript

TermDefinition
JavaScript pros adds interactivity, mainly used for client side execution (run on browser)
JavaScript cons client may not have enough processing resources, can be turned off for security
JavaScript is not java no graphical user interface, read/write file access, not class based, NEEDS A BROWSER
what JavaScript can do client side control browser features, modify document content, manipulate images
JavaScript CSS visual enhancement that CSS can't do, advanced animation (NOT a replacement)
where to put JavaScript embedded <script>
where to JavaScript in own file src 'inputValidator', type = 'text/javascript'
Javascript variables can be letters, digits, underscores, $ (NOT a space or starting w/ a digit)
is JavaScript case sensitive? YES
A JavaScript function without a name is called…? anonymous function
JavaScript addition, subtraction, increment +, -, ++
logical operators (and, or, not) && (and), || (or), ! (not)
JavaScript comment /*code/*
string concatenation x = '5' + 5 x = '55'
date and time new Date()
conditional if, else if (condition) {} else {};
conditional while while (condition){};
conditional loop do {code} while(condition); **runs at least once
input/output in JavaScript limited bc of security
output examples window.alert() document.write()
input examples window.prompt() confirm()
debug examples console.log()
post increment b = a++ b takes on a value, then a gets incremented
pre increment b = ++a a is incremented first, than b takes on new a value
JavaScript functions math, string, date/time, arrays
JavaScript function format function () {}
ways to return control to function right brace, executing return or "return expression"
can functions be referenced by a variable or another function? yes
an array is represented by what symbols? []
the first element in an array is what? 0
push() adds new element to end of array
pop() removes last element and returns it
shift() removes first element and returns it
JavaScript events allow scripts to respond to user interactions and modify the page
load event happens when the window load object fires, all children and external files are loaded
event handler a function that responds to an event (addEventListenter)
mouseover event when mouse hovers over element, event occurs
mouseout event when mouse moves away from element, event occurs
window object open window in browser
window methods alert(), setTimeout (calls function for number of milliseconds), setInterval (call function at interval milliseconds)
document object the root of an HTML element
DOM Document Object Model
DOM specifies... HTML and XML elements
JavaScript can edit...
A node can have multiple children and how many parents?
the html node in a DOM tre is called?
document.getElementbyId()
document.queryselectorAll()
dot operator returns element attribute values like...
document.getElementsByTagName()
DOM Collections
collection length
document.images[0]
element.innerHTML
element.style.visibility = "hidden"
document.write(text)
Created by: naddotey
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards