JavaScript Flashcards
Which method converts a string value to uppercase letters?
toUpperCase()
Which event occurs when the loading of an image is terminated?
abort
Which event occurs when a user clicks the mouse button outside of a particular input field?
blur
Which event occurs when the user clicks on a link or form element?
click
Which event occurs when a user modifies the value of a form field?
change
Which event occurs when there is a problem loading an external image or resource?
error
Which event occurs when a user clicks into a form field?
focus
Which event occurs when a page is opened?
load
Which event occurs when the user moves the mouse pointer over a link, image or other visible element on a page?
mouseOver
Which event occurs when the mouse pointer leaves a link, image or other visible element on a page?
mouseOut
Which event occurs when a form’s Reset button is clicked?
reset
Which event occurs when the user highlights the text in a form field?
select
Which event occurs when a form’s Submit button is clicked?
submit
Which event occurs when a page closed?
unload
What are attributes of an object, such as height, color, font size, sentence length and so forth?
properties
What are actions that an object can be made to perform?
methods
Which method creates a pop-up box with the specified message string, which the user can dismiss by clicking a button in the box?
alert()
Which method creates a pop-up box with the specified message string and requests user input into a text field in the box?
prompt()
Which method creates a pop-up box with the specified message string and requests user confirmation by clicking the OK or Cancel button in the box?
confirm()
Which method writes the specified message string in the page?
document.write()
What is a named space of memory?
variable
Which operator is used to assign values?
=
Which data type holds any numeric value used for mathematical operations?
number
Which data type holds any string of alphanumeric characters used for words or for numbered phrases that are not mathematically manipulated?
string
Which expression creates a string value?
var birthYear = “1956”
The quotes around 1956 make it a string value.
Which expression creates an integer value?
var birthYear = 1956
If 1956 had quotes around it, it would no longer be an integer, it would become a string.
Which data type holds True or False values only?
Boolean
Which value indicates that a user enters nothing in a text box then submits the form?
null