Chapter 2 Flashcards
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 (+=)