Chapter 4 End Flashcards Preview

Programming Fundamentals > Chapter 4 End > Flashcards

Flashcards in Chapter 4 End Deck (3)
Loading flashcards...
1

powerful and unique, provides shorthand method of expressing a simple if/else statement; considered a ternary operator; performs operation as if (exp1) exp 2, else exp3

format: exp ? exp : exp

conditional operator

2

variable can only be accessed within braces it was declared

local scope

3

variable may be used in part of program between its definition and the block's closing brace

block scope