Chapter 2 Flashcards
(30 cards)
T/F In JavaScript code, you use the words yes and no to indicate Boolean values
False
T/F A comparison operator is used to compare two operands and determine if one numeric value is greater than another
True
T/F A logical operator is used to compare two string operands for equality
False
T/F Parentheses are used with expressions to change the associativity with which individual operations in an expression are evaluated
True
T/F An anonymous function is a set of related statements that is assigned a name
False
In JavaScript you can write your own procedures called (Blank) which refer to a related group of JavaScript statements that are executed as a single unit
functions
parameter
a variable that is used within a function
return statement
a statement that returns a value to the statement that called the function
global variable
variable that is declared outside a function and is available to all parts of a program
Data types that can be assigned only a single value are called (Blank) types
primitive
Programming languages that require you to declare the data types of variables are called (Blank) typed
strongly/statically
JavaScript is a (Blank) typed programming language
loosely/dynamically
integer
a positive or negative number with no decimal places
A literal string can be assigned a zero-length string value called a(n) (Blank) string
empty
You can use the compound (Blank) to combine two strings
assignment operator (+=)
escape character
tells the compiler or interpreter that the character that follows has a special purpose
===
strict equal operator
modulus
remainder left after you divide one number by another number
&&
and operator
?!
conditional expression
Operator Precedence
Multiplication, Division, Modulus Addition, Subtraction, Comparison Object Type Object Property Equality Logical And Logical Or Conditional Assignment Compound Assignment Comma
&&, | |, !
Logical Operators. And, Or, Not
Six Falsy Values
””, -0, 0, NaN, null, undefined
Function Statements are contained within the function (Blank)
braces