The Deck Week 1 Flashcards
(34 cards)
What are booleans?
Booleans are a data type that represent true and false values
What data types have infinite possibilities? Which data type does not?
Strings and numbers have infinite possibilities. Booleans can only be true or false.
A ________ will compare ____ values and return a _______ value indicating whether that expression evaluates to ______ or ______.
comparison operator two boolean true false
Comparison Operator: Not equal to
!===
Comparison Operator: Equal to
===
if ( ________ ) {
check ________
___ ___ if _______ is met
}
condition
condition
run code
condition
What does the return statement indicate?
The return statement indicates that a function is done running and to pass over any code in the following lines within the function. A value should be given.
Javascript is…?
a programming language that powers web pages on the internet
What is the most common environment for running Javascript code?
Web Browsers
When code is ephemeral, what does that mean?
Ephemeral code has no way to stick around or be saved. Such as the code within the Google Developer Javascript Console
To make a computer do more work, ________________________.
make more instructions
To make a computer do less work, _______________________.
make less instructions
What are the 5 building blocks of programs?
values functions keywords labels comments
Values are individual pieces of ______.
data
What are the different kinds of values used in a program called?
types
What are operators?
Operators are special symbols that perform operations on one or two values.
What are expressions? How can they be created? What can they be compared to?
Expressions are fragments of code that produce values. They can be created with values and operators. They are like single line instructions.
1 + 2 (What is 1, what is it’s type?)
a value
number
1 + 2 (What is + and what does it do?)
an operator, it performs operations upon the values 1 and 2
1 + 2 (What do you call this whole thing?)
an expression
What kind of operators perform worn on 2 values? What kind of perator performs work on 1 value?
Binary Operator
Unary Operator
‘hello’ + ‘world’ : what are we doing here?
concatenation
a function is a group of _______ that perform some sort of ______
instructions
work
What is a a label?
a human friendly way to refer to information stored in a computer’s memory