JavaScript Flashcards
Which errors are typically syntax errors and usually cause error alerts?
Load-time errors
Which method converts a string value to uppercase letters?
toUpperCase()
Which methods determines whether a value is a number?
isNaN()
What process combines two text strings using the plus sign?
concatenation
Which method converts a string to its integer equivalent?
parseInt()
What processes a function’s statements?
calling statement
Which type of operator is this?
25 + 75
Arithmetic
Which expression creates an integer value?
var birthYear = 1956
How does a for loop start?
for (i = 0; i <= 5; i++)
Which event occurs when the user moves the mouse pointer over a link, image, or other visible element on a page?
mouseOver
What is a way of changing a variable from one data type to another?
casting
Why is a reference technique used to access the property or method of an object?
dot notation
Which type of operator is this?
myNumber = 25
Assignment
Which operator is used to assign values?
=
Which expression creates a string value?
var name = “Andrew”
What is the actual data values you provide in JS?
literal
Which event occurs when a user clicks the mouse button outside of a particular input field?
blur
What does a one line JS comment look like?
// this
Which data type holds any numeric value used for mathematical operations?
number
Which event occurs when the user highlights the text in a form field?
select
What type of variable is declared within a function and available only from within that function?
local variable
Which method converts a string to its floating point decimal equivalent?
parseFloat()
What is a symbol or character used in expressions to store or evaluate a value?
operator
What is a part of a statement that is evaluated as a value?
expression
How do you declare a function?
function myFunction() {}
What is a self-contained programming component that contains properties and methods?
object
What are key characteristics and features of JavaScript?
an object-based language
based on event-driven model
platform independent
enables quick development
relatively easy to learn
How do you apply inline scripting to an element?
<a>
click here
</a>
Which event occurs when the user modifies the value of a form field?
change
Which event occurs when the user clicks on a link or form element?
click
Which type of operator is this?
25 < 75
Logical